CLOUDSTACK-9058

Respond with "saved_password" if no password is to be issued.
This commit is contained in:
dsclose 2015-11-12 08:05:57 +00:00
parent 04f72088c0
commit 8a7deefe64

View File

@ -113,6 +113,7 @@ class PasswordRequestHandler(BaseHTTPRequestHandler):
if requestType == 'send_my_password':
password = getPassword(clientAddress)
if not password:
self.wfile.write('saved_password')
syslog.syslog('serve_password: requested password not found for %s' % clientAddress)
else:
self.wfile.write(password)