]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Modifying output in wait_for_finish_install()
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 11 Apr 2018 12:41:51 +0000 (14:41 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 11 Apr 2018 12:41:51 +0000 (14:41 +0200)
lib/cr_vmware_tpl/handler.py

index 8d0afafee979aa02b2043a95acf8536107726f9f..0c20bfd50723786cd5ecf2adc17ba18220b6505a 100644 (file)
@@ -6,7 +6,7 @@
 @copyright: © 2018 by Frank Brehm, Berlin
 @summary: A handler module for creating the VMWare template
 """
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 # Standard module
 import sys
@@ -627,10 +627,10 @@ class CrTplHandler(PpBaseObject):
             time.sleep(self.interval_poll)
             cur_time = time.time()
             if (cur_time - last_dot) >= self.interval_dot:
-                sys.stdout.write('.')
-                sys.stdout.flush()
+                print('.', end='', flush=True)
                 last_dot = cur_time
             cur_duration = cur_time - self.ts_start_install
+        print('', flush=True)
 
 # =============================================================================