Marek Marczykowski-Górecki
02cfab8257
Try to use new property.GetAll method to pre-fill the cache
...
When caching is enabled, reduce number of calls by getting all the
properties at once. If the call is not available (for example because of
the policy), fallback to getting individual values.
QubesOS/qubes-issues#5415
2020-05-22 19:01:24 +02:00
Pawel Marczewski
023f2f593c
Add a test for vm.get_mem()
2020-01-15 17:32:25 +01:00
Pawel Marczewski
e5612592d4
Update tests to mock admin.vm.CurrentState
2020-01-15 17:32:24 +01:00
Marek Marczykowski-Górecki
ce0d230866
Add property_get_default method
...
It is useful to get property default value, without changing it to
default. For example to list it in GUI tools
Fixes QubesOS/qubes-issues#3197
2018-01-12 23:40:05 +01:00
Marek Marczykowski-Górecki
c988ef41a3
Fix setting VM property to None
...
None value should be encoded as empty string.
2017-05-26 00:42:47 +02:00
Marek Marczykowski-Górecki
de2f23b9fe
Add QubesNoSuchPropertyError exception, expect it on invalid property
...
It inherits from AttributeError, so standard handling should just work.
2017-05-23 04:31:41 +02:00
Marek Marczykowski-Górecki
cfc9ff2ce5
Rename Mgmt API to Admin API: methods names
...
QubesOS/qubes-issues#853
2017-05-12 19:36:03 +02:00
Marek Marczykowski-Górecki
4ceff0f8c0
Rename qubesmgmt to qubesadmin module
...
QubesOS/qubes-issues#853
2017-05-11 23:40:03 +02:00