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

index e46a6afd37e6b0e0d97a5ad3b43dfd9947589cec..e17b26fe1608ef2edea3ec3818b943880582f7df 100644 (file)
@@ -228,7 +228,7 @@ class Cobbler(BaseHandler):
                 str(local_ks))
             raise ExpectedCobblerError(msg)
         local_ks_content = local_ks.read_bytes()
-        digest = hashlib.sha256(m).hexdigest()
+        digest = hashlib.sha256(local_ks_content).hexdigest()
         if self.verbose > 1:
             LOG.debug(_('{typ} sum of {ks!a}r is: {dig}').format(
                 typ='SHA256', ks=str(local_ks), dig=digest))