]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding debug output
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 12 Jun 2020 11:58:27 +0000 (13:58 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 12 Jun 2020 11:58:27 +0000 (13:58 +0200)
lib/cr_vmware_tpl/cobbler.py

index 879d47965d24f44ae6f000a398e25ce774194921..7a0fcd0962325d52ee39bccf77bf91dae7e2f0be 100644 (file)
@@ -40,7 +40,7 @@ from .config import CrTplConfiguration
 
 from .xlate import XLATOR
 
-__version__ = '0.5.2'
+__version__ = '0.5.3'
 
 LOG = logging.getLogger(__name__)
 
@@ -765,6 +765,8 @@ class Cobbler(BaseHandler):
                     assigments[found_mac] = cur_ip
                 continue
 
+        if self.verbose:
+            LOG.debug(_("Found DHCP IP assignments:") + "\n" + pp(assigments))
         if mac in assigments:
             return assigments[mac]
         return None