mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 22:31:25 -07:00
Clarify usage of encrypt arg (#43330)
According to the do_encrypt interface, encrypt arg should be the hash method name used for encrypting returning password. But in the doc and lookup code it's a boolean flag, correct it to string.
This commit is contained in:
parent
62d8c8fde6
commit
3a3869f4c8
2 changed files with 9 additions and 8 deletions
|
@ -333,7 +333,7 @@ class TestFormatContent(unittest.TestCase):
|
|||
self.assertEqual(
|
||||
password._format_content(password=u'hunter42',
|
||||
salt=None,
|
||||
encrypt=False),
|
||||
encrypt=None),
|
||||
u'hunter42')
|
||||
|
||||
def test_encrypt(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue