From: Frank Brehm Date: Thu, 28 May 2020 15:13:34 +0000 (+0200) Subject: Bugfixing X-Git-Tag: 2.1.2^2~9^2~31^2~91 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=36364f81552f149ca0c1c30fa5ec2250f0e3d850;p=pixelpark%2Fcreate-vmware-tpl.git Bugfixing --- diff --git a/lib/cr_vmware_tpl/cobbler.py b/lib/cr_vmware_tpl/cobbler.py index e17b26f..e4defec 100644 --- a/lib/cr_vmware_tpl/cobbler.py +++ b/lib/cr_vmware_tpl/cobbler.py @@ -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