Fix ssh credential validation message
This error message specifies 'password' as one of the valid credential keys, but really it should be 'ssh_password'. Fix it. Change-Id: I5671f6f312afc142f6a58c68610b620edd3adf44
This commit is contained in:
parent
ba1e15e3a9
commit
d73b08db23
@ -398,8 +398,8 @@ def _parse_driver_info(node):
|
||||
# precedence etc).
|
||||
if len([v for v in (password, key_filename, key_contents) if v]) != 1:
|
||||
raise exception.InvalidParameterValue(_(
|
||||
"SSHPowerDriver requires one and only one of password, "
|
||||
"key_contents and key_filename to be set."))
|
||||
"SSHPowerDriver requires one and only one of ssh_password, "
|
||||
"ssh_key_contents and ssh_key_filename to be set."))
|
||||
if password:
|
||||
res['password'] = password
|
||||
elif key_contents:
|
||||
|
Loading…
x
Reference in New Issue
Block a user