Skip to content
Snippets Groups Projects
Commit 8b06e31e authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

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.
parent c2f68a34
Branches
Tags
No related merge requests found
...@@ -756,7 +756,7 @@ def main(): ...@@ -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":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment