Browse Source

qvm-sync-clock: Do not fail if clockvm is not set

M. Vefa Bicakci 4 years ago
parent
commit
7980d94807
1 changed files with 3 additions and 0 deletions
  1. 3 0
      qvm-tools/qvm-sync-clock

+ 3 - 0
qvm-tools/qvm-sync-clock

@@ -32,6 +32,9 @@ def main():
     app = Qubes()
     clockvm = app.clockvm
 
+    if not clockvm:
+        sys.exit(0)
+
     if not clockvm.is_running():
         sys.stderr.write('ClockVM {} is not running, aborting.\n'.format(
             clockvm.name))