network.py filter_plugin typo fix (#47011)
changed return_orginal to return_original in /lib/ansible/plugins/filter/network.py
This commit is contained in:
parent
fc341e01fa
commit
b9cf09e9d5
1 changed files with 2 additions and 2 deletions
|
@ -388,11 +388,11 @@ def hash_salt(password):
|
||||||
return split_password[2]
|
return split_password[2]
|
||||||
|
|
||||||
|
|
||||||
def comp_type5(unencrypted_password, encrypted_password, return_orginal=False):
|
def comp_type5(unencrypted_password, encrypted_password, return_original=False):
|
||||||
|
|
||||||
salt = hash_salt(encrypted_password)
|
salt = hash_salt(encrypted_password)
|
||||||
if type5_pw(unencrypted_password, salt) == encrypted_password:
|
if type5_pw(unencrypted_password, salt) == encrypted_password:
|
||||||
if return_orginal is True:
|
if return_original is True:
|
||||||
return encrypted_password
|
return encrypted_password
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue