summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Washenberger <mark.washenberger@rackspace.com>2011-04-06 13:42:04 -0400
committerMark Washenberger <mark.washenberger@rackspace.com>2011-04-06 13:42:04 -0400
commit3e120e52fcb8fca1b97b496c618c3b9e2b459598 (patch)
tree95fa0e7923b661129b8e1672ca3c45409791538c
parent1afcf5511d4cfa70dd17113c9253594fbd5b7aa1 (diff)
add docstrings
-rw-r--r--nova/api/openstack/servers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 40aca64b4..3b6d14ae1 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -244,6 +244,7 @@ class Controller(wsgi.Controller):
raise error
def _get_server_admin_password(self, server):
+ """ Determine the admin password for a server on creation """
return utils.generate_password(16)
@scheduler_api.redirect_handler
@@ -653,6 +654,7 @@ class ControllerV11(Controller):
return common.limited_by_marker(items, req)
def _get_server_admin_password(self, server):
+ """ Determine the admin password for a server on creation """
password = server.get('adminPass')
if password is None:
return utils.generate_password(16)