Removes 'md5' as it only compares two hashes. (#33286)

Removing 'md5' checksum checking as simply comparing current and desired publickey does the expected job.

Signed-off-by: Satyajit Bulage <sbulage@redhat.com>
pull/33333/head
Satyajit Bulage 7 years ago committed by Abhijeet Kasurde
parent e65001ee22
commit 341e79b604

@ -224,7 +224,7 @@ class PublicKey(crypto_utils.OpenSSLObject):
crypto_utils.load_privatekey(self.privatekey_path, self.privatekey_passphrase)
)
return hashlib.md5(current_publickey).hexdigest() == hashlib.md5(desired_publickey).hexdigest()
return current_publickey == desired_publickey
if not state_and_perms:
return state_and_perms

Loading…
Cancel
Save