]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Fixing Parsing for Cobbler version
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 27 May 2020 14:55:09 +0000 (16:55 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 27 May 2020 14:55:09 +0000 (16:55 +0200)
lib/cr_vmware_tpl/cobbler.py

index b4938d131537cb32b5f0f3ad4adde71317287999..8b6dac49bb27d59d1b1f5e72f4b755a81b3fad15 100644 (file)
@@ -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