qvm-sync-clock: clarify message on NTP call failed and --force used

This commit is contained in:
Marek Marczykowski-Górecki 2016-02-29 13:22:18 +01:00
parent 5c877e9850
commit fae73e6373
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -90,7 +90,8 @@ def main():
verbose=options.verbose, gui=False, wait=True, ignore_stderr=True) \ verbose=options.verbose, gui=False, wait=True, ignore_stderr=True) \
!= 0: != 0:
if options.force: if options.force:
print >> sys.stderr, 'Time sync failed! - Sync forced' print >> sys.stderr, 'Time sync failed! - Syncing with dom0 ' \
'anyway as requested'
else: else:
print >> sys.stderr, 'Time sync failed! - Exiting' print >> sys.stderr, 'Time sync failed! - Exiting'
sys.exit(1) sys.exit(1)