From 6d9169dafa06dd7950cad45a7ae2ab47bc57c49f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 27 May 2020 16:55:09 +0200 Subject: [PATCH] Fixing Parsing for Cobbler version --- lib/cr_vmware_tpl/cobbler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cr_vmware_tpl/cobbler.py b/lib/cr_vmware_tpl/cobbler.py index b4938d1..8b6dac4 100644 --- a/lib/cr_vmware_tpl/cobbler.py +++ b/lib/cr_vmware_tpl/cobbler.py @@ -160,7 +160,7 @@ class Cobbler(BaseHandler): proc = self.exec_cobbler('version', no_simulate=True) first_line = proc.stdout.splitlines()[0] - cobbler_version = re.sub(r'^\s*cobbler\s+', '', first_line, re.IGNORECASE).strip() + cobbler_version = re.sub(r'^\s*cobbler\s+', '', first_line, flags=re.IGNORECASE).strip() LOG.info(_("Version of {} is:").format("Cobbler") + " {!r}".format(cobbler_version)) return cobbler_version -- 2.39.5