dom0/qvm-sync-clock: ignore VMs not supporting remote exec (#467)
Eg HVM
This commit is contained in:
parent
db043c84bc
commit
478b90e720
@ -89,7 +89,10 @@ def main():
|
|||||||
if vm.is_running() and vm.qid != 0 and vm.qid != clock_vm.qid:
|
if vm.is_running() and vm.qid != 0 and vm.qid != clock_vm.qid:
|
||||||
if verbose:
|
if verbose:
|
||||||
print >> sys.stderr, '--> Syncing \'%s\' clock.' % vm.name
|
print >> sys.stderr, '--> Syncing \'%s\' clock.' % vm.name
|
||||||
|
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:
|
||||||
|
pass
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user