mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-14 13:32:10 +00:00
Fix ipavault vault_type under Python 2.7.
When running module ipavault with Python 2.7, due to differences in the handling of unicode string than in Python 3, the vault_type type was different than the required. This patch changes the default value to force a unicode string in the supported versions of Python, fixing the module when Python 2 is used.
This commit is contained in:
@@ -756,7 +756,7 @@ def main():
|
|||||||
res_vault_type = res_find.get('ipavaulttype')[0]
|
res_vault_type = res_find.get('ipavaulttype')[0]
|
||||||
args['ipavaulttype'] = vault_type = res_vault_type
|
args['ipavaulttype'] = vault_type = res_vault_type
|
||||||
else:
|
else:
|
||||||
args['ipavaulttype'] = vault_type = "symmetric"
|
args['ipavaulttype'] = vault_type = u"symmetric"
|
||||||
|
|
||||||
# Create command
|
# Create command
|
||||||
if state == "present":
|
if state == "present":
|
||||||
|
|||||||
Reference in New Issue
Block a user