core-admin-client/qubesadmin
Marek Marczykowski-Górecki 45a28c29ae
Fix VM validity check for cached VM objects
Qubes().domains.refresh_cache() tries to preserve cached VM objects if
the class matches - this way if an application keeps reference to any,
it will still be the same as freshly obtained from the collection, and
also it will receive cache updates/invalidates based on events.

The check for class change was invalid - on core-admin-client side we
have just one QubesVM class with 'klass' attribute. This leads to VM
objects being disconnected from VMCollection and stale properties cache
there (because they no longer receive events).

Fix the check.

And also add a test if indeed the same object is returned.
2020-07-14 16:10:49 +02:00
..
backup Make pylint happy 2019-10-05 21:57:48 +02:00
events events: implicitly enable caching when creating EventsDispatcher 2020-05-22 19:28:51 +02:00
tests Fix VM validity check for cached VM objects 2020-07-14 16:10:49 +02:00
tools Merge remote-tracking branch 'origin/pr/140' 2020-06-20 05:01:59 +02:00
vm Cache power state when caching is enabled 2020-05-22 19:28:51 +02:00
__init__.py Choose QubesLocal or QubesRemote based on /etc/qubes-release presence 2017-07-18 01:58:33 +02:00
app.py Fix VM validity check for cached VM objects 2020-07-14 16:10:49 +02:00
base.py Try to use new property.GetAll method to pre-fill the cache 2020-05-22 19:01:24 +02:00
config.py tools: add qvm-template-postprocess 2017-05-26 01:33:43 +02:00
devices.py Do not check for object existence when got it with another Admin API call 2020-05-18 04:37:48 +02:00
exc.py Fixed Exceptions inferiting from KeyError 2019-12-09 21:05:18 +01:00
features.py features: serialize True as '1' 2017-07-28 13:56:05 +02:00
firewall.py Make pylint happy 2019-03-07 03:17:29 +01:00
label.py Added better __eq__ method to Label class 2020-07-09 19:28:25 +02:00
log.py Drop log.DBusHandler 2017-10-16 01:33:03 +02:00
spinner.py qubesadmin/spinner: fix licence 2017-06-08 08:12:58 +02:00
storage.py Import data using ImportWithSize call, not manual resizing 2020-01-23 10:29:50 +01:00
tags.py tags support 2017-06-20 01:34:16 +02:00
utils.py Support for AudioVM 2020-03-28 17:33:02 +01:00