qvm-sync-clock: hide stdout in non-verbose mode
This commit is contained in:
parent
5f9a30d335
commit
6c167911f1
@ -102,8 +102,10 @@ def main():
|
|||||||
if verbose:
|
if verbose:
|
||||||
print >> sys.stderr, '--> Syncing dom0 clock.'
|
print >> sys.stderr, '--> Syncing dom0 clock.'
|
||||||
|
|
||||||
subprocess.check_call(['sudo', 'date', '-u', '-Iseconds', '-s', date_out])
|
subprocess.check_call(['sudo', 'date', '-u', '-Iseconds', '-s', date_out],
|
||||||
subprocess.check_call(['sudo', 'hwclock', '--systohc'])
|
stdout=None if verbose else open(os.devnull, 'w'))
|
||||||
|
subprocess.check_call(['sudo', 'hwclock', '--systohc'],
|
||||||
|
stdout=None if verbose else open(os.devnull, 'w'))
|
||||||
|
|
||||||
# Sync other VMs clock
|
# Sync other VMs clock
|
||||||
for vm in qvm_collection.values():
|
for vm in qvm_collection.values():
|
||||||
|
Loading…
Reference in New Issue
Block a user