dom0: minor qvm-sync-clock fix

Catch any error in vm.run, to not break clock syncing of all VMs because one
VM.
This commit is contained in:
Marek Marczykowski 2012-06-15 17:42:14 +02:00
parent 92844a161a
commit 06d99b77df

View File

@ -91,7 +91,8 @@ def main():
print >> sys.stderr, '--> Syncing \'%s\' clock.' % vm.name
try:
vm.run('root:date -u -s "%s"' % date_out, verbose=verbose)
except NotImplementedError:
except Exception as e:
print >> sys.stderr, "ERROR syncing time in VM '%s': %s" % (vm.name, str(e))
pass
main()