]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Bugfixing
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 May 2020 15:13:34 +0000 (17:13 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 May 2020 15:13:34 +0000 (17:13 +0200)
lib/cr_vmware_tpl/cobbler.py

index e17b26fe1608ef2edea3ec3818b943880582f7df..e4defec84f284ffd6c7b04d70fafbc5d844ac21d 100644 (file)
@@ -230,12 +230,12 @@ class Cobbler(BaseHandler):
         local_ks_content = local_ks.read_bytes()
         digest = hashlib.sha256(local_ks_content).hexdigest()
         if self.verbose > 1:
-            LOG.debug(_('{typ} sum of {ks!a}r is: {dig}').format(
+            LOG.debug(_('{typ} sum of {ks!r} is: {dig}').format(
                 typ='SHA256', ks=str(local_ks), dig=digest))
 
         cmd = textwrap.dedent("""\
         if [ -f {ks!r} ] ; then
-            digest=$(sha256sum {ks!r} | awk '{print $1}')
+            digest=$(sha256sum {ks!r} | awk '{{print $1}}')
             if [ "${digest}" != {dig!r} ] ; then
                 echo "SHA256 sum does not match." >&2
                 exit 4