From: Frank Brehm Date: Fri, 12 Jun 2020 11:58:27 +0000 (+0200) Subject: Adding debug output X-Git-Tag: 2.1.2^2~9^2~31^2~47 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=66339435d70cea3db908457b05d74b0b14eceaf3;p=pixelpark%2Fcreate-vmware-tpl.git Adding debug output --- diff --git a/lib/cr_vmware_tpl/cobbler.py b/lib/cr_vmware_tpl/cobbler.py index 879d479..7a0fcd0 100644 --- a/lib/cr_vmware_tpl/cobbler.py +++ b/lib/cr_vmware_tpl/cobbler.py @@ -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