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:
parent
e65001ee22
commit
341e79b604
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue