From 2b489e32572271a40a5b0e04af5c3fd16ebdfa70 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 21 Mar 2016 00:32:07 +0100 Subject: [PATCH] Fix type of the rhn_register module Password and activationkey should be tagged as no_log, as they are supposed to be secret. sslcacert is a path, so should be tagged as such. --- packaging/os/rhn_register.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/os/rhn_register.py b/packaging/os/rhn_register.py index fb741711b7b..979a51eb3f4 100644 --- a/packaging/os/rhn_register.py +++ b/packaging/os/rhn_register.py @@ -307,11 +307,11 @@ def main(): argument_spec = dict( state = dict(default='present', choices=['present', 'absent']), username = dict(default=None, required=False), - password = dict(default=None, required=False), + password = dict(default=None, required=False, no_log=True), server_url = dict(default=rhn.config.get_option('serverURL'), required=False), - activationkey = dict(default=None, required=False), + activationkey = dict(default=None, required=False, no_log=True), profilename = dict(default=None, required=False), - sslcacert = dict(default=None, required=False), + sslcacert = dict(default=None, required=False, type='path'), systemorgid = dict(default=None, required=False), enable_eus = dict(default=False, type='bool'), channels = dict(default=[], type='list'),