From: Frank Brehm Date: Wed, 27 May 2020 14:55:09 +0000 (+0200) Subject: Fixing Parsing for Cobbler version X-Git-Tag: 2.1.2^2~9^2~31^2~107 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=6d9169dafa06dd7950cad45a7ae2ab47bc57c49f;p=pixelpark%2Fcreate-vmware-tpl.git Fixing Parsing for Cobbler version --- 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