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:
Sheng Yang 2011-09-21 14:39:00 -07:00
parent bea981b6dd
commit 85a164f6ac

View File

@ -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