Fix --password in server rebuild
Use correct attribute to get password in server rebuild command. Fixes bug 1190722 Change-Id: Ibe2ccb8840a385319781885b8aadca6e1ba4cc43
This commit is contained in:
parent
7b47579dad
commit
61beeb7e20
@ -521,8 +521,8 @@ class RebuildServer(show.ShowOne):
|
||||
compute_client.servers, parsed_args.server)
|
||||
|
||||
_password = None
|
||||
if parsed_args.rebuild_password is not False:
|
||||
_password = parsed_args.rebuild_password
|
||||
if parsed_args.password is not False:
|
||||
_password = parsed_args.password
|
||||
|
||||
kwargs = {}
|
||||
server = server.rebuild(image, _password, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user