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>
This commit is contained in:
Satyajit Bulage 2017-11-28 13:51:17 +05:30 committed by Abhijeet Kasurde
parent e65001ee22
commit 341e79b604

View file

@ -224,7 +224,7 @@ class PublicKey(crypto_utils.OpenSSLObject):
crypto_utils.load_privatekey(self.privatekey_path, self.privatekey_passphrase) 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: if not state_and_perms:
return state_and_perms return state_and_perms