From 6806965bda953bb975340b6a39be8627561f2e9d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 7 Nov 2016 11:35:23 +0100 Subject: [PATCH] Add no_log on password argument Also do not use a wildcard import, for later refactoring --- lib/ansible/modules/web_infrastructure/supervisorctl.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/web_infrastructure/supervisorctl.py b/lib/ansible/modules/web_infrastructure/supervisorctl.py index 6ac5bc7de67..bd6baa98e3b 100644 --- a/lib/ansible/modules/web_infrastructure/supervisorctl.py +++ b/lib/ansible/modules/web_infrastructure/supervisorctl.py @@ -19,6 +19,7 @@ # along with Ansible. If not, see . # import os +from ansible.module_utils.basic import AnsibleModule, is_executable DOCUMENTATION = ''' --- @@ -101,7 +102,7 @@ def main(): config=dict(required=False, type='path'), server_url=dict(required=False), username=dict(required=False), - password=dict(required=False), + password=dict(required=False, no_log=True), supervisorctl_path=dict(required=False, type='path'), state=dict(required=True, choices=['present', 'started', 'restarted', 'stopped', 'absent']) ) @@ -239,8 +240,5 @@ def main(): module.fail_json(name=name, msg="ERROR (no such process)") take_action_on_processes(processes, lambda s: s in ('RUNNING', 'STARTING'), 'stop', 'stopped') -# import module snippets -from ansible.module_utils.basic import * -# is_executable from basic if __name__ == '__main__': main()