summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2016-11-07 11:35:23 +0100
committerBrian Coca <bcoca@users.noreply.github.com>2016-11-07 14:36:57 -0500
commitb8efa3cde0b4e8f1d3ab24fa86cf29a7cf7f1100 (patch)
treee41271af3ea66f23c57af95507d2493a068fa0a2
parent1ca20679dd397cb0236ebb0557615bffb8da3c70 (diff)
downloadansible-modules-core-b8efa3cde0b4e8f1d3ab24fa86cf29a7cf7f1100.tar.gz
Add no_log on password argument
Also do not use a wildcard import, for later refactoring
-rw-r--r--web_infrastructure/supervisorctl.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/web_infrastructure/supervisorctl.py b/web_infrastructure/supervisorctl.py
index 6ac5bc7d..bd6baa98 100644
--- a/web_infrastructure/supervisorctl.py
+++ b/web_infrastructure/supervisorctl.py
@@ -19,6 +19,7 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
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()