mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 11518: Return "saved_password" for non-existed password entry in domR
To solve password file is destroyed along with restartNetwork command issue. If the password is not set in fact, user can use "ResetPassword" to try again. But it won't happen mostly, because it's only possible if the restartNetwork happened between user start up VM and set the new password. Reviewed-by: Keshav status 11518: resolved fixed
This commit is contained in:
parent
bea981b6dd
commit
85a164f6ac
@ -74,7 +74,10 @@ then
|
||||
if [ "$password" == "" ]
|
||||
then
|
||||
logger -t cloud "serve_password sent bad_request to $ip."
|
||||
echo "bad_request"
|
||||
# echo "bad_request"
|
||||
# Return "saved_password" for non-existed entry, to make it
|
||||
# work if domR was once destroyed.
|
||||
echo "saved_password"
|
||||
else
|
||||
logger -t cloud "serve_password sent a password to $ip."
|
||||
echo $password
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user