Change warning message in change password help

Warning message was applied to wrong argument - fixed.

Change-Id: I2375f8b8bd0fbc3a543f532211353ac195124221
Closes-Bug: #1462343
This commit is contained in:
Sylwester Brzeczkowski
2015-09-08 14:32:11 +02:00
parent 1ce8ecd8be
commit a29d92a5ca
2 changed files with 6 additions and 5 deletions

View File

@@ -28,10 +28,11 @@ class UserAction(Action):
def __init__(self):
super(UserAction, self).__init__()
self.args = (
Args.get_new_password_arg(),
Args.get_new_password_arg(
"WARNING: This method of changing the "
"password is dangerous - it may be saved in bash history."),
Args.get_change_password_arg(
"Change user password. WARNING: This method of changing the "
"password is dangerous - it may be saved in bash history.")
"Change user password using interactive prompt")
)
self.flag_func_map = (

View File

@@ -177,11 +177,11 @@ def get_env_arg(required=False):
)
def get_new_password_arg():
def get_new_password_arg(help_msg):
return get_str_arg(
"newpass",
flags=("--new-pass",),
help="new_password",
help=help_msg,
required=False
)