ipaserver/library/ipaserver_master_password.py: Renamed name of password return

With using the name password for the password return it will be hidden
automatically and an error message will still be visible.
This commit is contained in:
Thomas Woerner
2018-01-29 17:35:24 +01:00
parent d84a199345
commit 1bebc6c4e9
2 changed files with 3 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ EXAMPLES = '''
'''
RETURN = '''
value:
password:
description: The master password
returned: always
'''
@@ -87,7 +87,7 @@ def main():
options.master_password = ipa_generate_password()
module.exit_json(changed=True,
value=options.master_password)
password=options.master_password)
if __name__ == '__main__':
main()

View File

@@ -103,9 +103,8 @@
register: ipaserver_master_password
- name: Install - Use new master password
no_log: yes
set_fact:
ipaserver_master_password: "{{ ipaserver_master_password.value }}"
ipaserver_master_password: "{{ ipaserver_master_password.password }}"
when: ipaserver_master_password is undefined