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:
Marek Marczykowski-Górecki 2017-05-25 12:33:24 +02:00
parent c988ef41a3
commit 6f99e871cf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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):