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:
@@ -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 = (
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user