dom0/qvm-sync-clock: ignore VMs not supporting remote exec (#467)

Eg HVM
This commit is contained in:
Marek Marczykowski 2012-03-05 17:59:23 +01:00
parent db043c84bc
commit 478b90e720

View File

@ -89,7 +89,10 @@ def main():
if vm.is_running() and vm.qid != 0 and vm.qid != clock_vm.qid:
if verbose:
print >> sys.stderr, '--> Syncing \'%s\' clock.' % vm.name
vm.run('root:date -u -s "%s"' % date_out, verbose=verbose)
try:
vm.run('root:date -u -s "%s"' % date_out, verbose=verbose)
except NotImplementedError:
pass
main()