Do not fail if cannot remove VM from xen store just before adding it again (#204)
This commit is contained in:
parent
8047ec780a
commit
d1abb37a5f
@ -372,7 +372,11 @@ class QubesVm(object):
|
||||
self.session_metrics = None
|
||||
|
||||
def update_xen_storage(self):
|
||||
self.remove_from_xen_storage()
|
||||
try:
|
||||
self.remove_from_xen_storage()
|
||||
except OSError as ex:
|
||||
print "WARNING: {0}. Continuing anyway...".format(str(ex))
|
||||
pass
|
||||
self.add_to_xen_storage()
|
||||
if not dry_run and xend_session.session is not None:
|
||||
self.refresh_xend_session()
|
||||
|
Loading…
Reference in New Issue
Block a user