Skip to content

Commit

Permalink
Adds key_name parameter in create_server
Browse files Browse the repository at this point in the history
Fixes bug 993632

Change-Id: I2c7915b09367934fcaf69a27a2361ec413ddf3f9
  • Loading branch information
chris fattarsi committed May 3, 2012
1 parent 89a6857 commit a6c2a73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tempest/services/nova/json/servers_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def create_server(self, name, image_ref, flavor_ref, **kwargs):
flavor_ref (Required): The flavor used to build the server.
Following optional keyword arguments are accepted:
adminPass: Sets the initial root password.
key_name: Key name of keypair that was created earlier.
meta: A dictionary of values to be used as metadata.
personality: A list of dictionaries for files to be injected into
the server.
Expand All @@ -40,7 +41,7 @@ def create_server(self, name, image_ref, flavor_ref, **kwargs):
'flavorRef': flavor_ref
}

for option in ['personality', 'adminPass',
for option in ['personality', 'adminPass', 'key_name',
'security_groups', 'networks', 'user_data',
'availability_zone', 'accessIPv4', 'accessIPv6',
'min_count', 'max_count', ('metadata', 'meta'),
Expand Down

0 comments on commit a6c2a73

Please sign in to comment.