Clear VM cache after adding new VM
If cache was already populated, trying to reference newly created VM would fail as it isn't the cache.
This commit is contained in:
parent
c988ef41a3
commit
6f99e871cf
@ -267,6 +267,7 @@ class QubesBase(qubesadmin.base.PropertyHolder):
|
||||
self.qubesd_call('dom0', method_prefix + cls, template,
|
||||
payload.encode('utf-8'))
|
||||
|
||||
self.domains.clear_cache()
|
||||
return self.domains[name]
|
||||
|
||||
def clone_vm(self, src_vm, new_name, pool=None, pools=None):
|
||||
|
Loading…
Reference in New Issue
Block a user