]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Changing debug output
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 12 Apr 2018 11:06:06 +0000 (13:06 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 12 Apr 2018 11:06:06 +0000 (13:06 +0200)
lib/cr_vmware_tpl/handler.py

index ef3bdb498e15f3af6425487fd13b1fa9c32b00c3..7498ef8180d798e2182ecc1150f1db38d7578cfe 100644 (file)
@@ -37,7 +37,7 @@ from .obj import PpBaseObject
 
 from .config import CrTplConfiguration
 
-__version__ = '0.6.4'
+__version__ = '0.6.5'
 LOG = logging.getLogger(__name__)
 TZ = pytz.timezone('Europe/Berlin')
 
@@ -644,7 +644,8 @@ class CrTplHandler(PpBaseObject):
         print('', flush=True)
 
         LOG.debug("Waiting for SSH available ...")
-        print('   ==> ', end='', flush=True)
+        if self.verbose <= 3:
+            print('   ==> ', end='', flush=True)
 
         addr_infos = socket.getaddrinfo(
             self.config.template_vm, 22, socket.AF_INET, socket.SOCK_STREAM)
@@ -675,7 +676,7 @@ class CrTplHandler(PpBaseObject):
             cur_time = time.time()
             cur_duration = cur_time - self.ts_start_install
             if (cur_time - last_dot) >= self.interval_dot:
-                if self.verbose < 3:
+                if self.verbose <= 3:
                     print('.', end='', flush=True)
                     i += 1
                     if i >= 60: