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:
parent
ab9c2e503a
commit
0e2aba228f
@ -91,7 +91,8 @@ def main():
|
|||||||
print >> sys.stderr, '--> Syncing \'%s\' clock.' % vm.name
|
print >> sys.stderr, '--> Syncing \'%s\' clock.' % vm.name
|
||||||
try:
|
try:
|
||||||
vm.run('root:date -u -s "%s"' % date_out, verbose=verbose)
|
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
|
pass
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user