if password in profile,not overwrite it

if user provide password in profile,we shouldn't overwrite it
This commit is contained in:
SolarisYan 2016-11-11 13:03:48 +08:00 committed by GitHub
parent 9751e19b61
commit a59b07bf71

View File

@ -693,8 +693,8 @@ def request_instance(vm_=None, call=None):
vm_['name'], exc
)
)
vm_['password'] = data.extra.get('password', '')
if not vm_.get('password', None):
vm_['password'] = data.extra.get('password', '')
return data, vm_