From 66339435d70cea3db908457b05d74b0b14eceaf3 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 12 Jun 2020 13:58:27 +0200 Subject: [PATCH] Adding debug output --- lib/cr_vmware_tpl/cobbler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5