summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-02-17 22:50:17 +0000
committerTarmac <>2011-02-17 22:50:17 +0000
commit76a82e57dfbca67e1e70a12db4f4b5c2111e4d93 (patch)
treead470c12b3650141ec74051386af8e87e6515999 /nova/api
parent5688fbd7a06ea47e18f38e4c900be4dbb50b921c (diff)
parentc0972233901774598fe6c836fcc3a0dd1f28f180 (diff)
downloadnova-76a82e57dfbca67e1e70a12db4f4b5c2111e4d93.tar.gz
nova-76a82e57dfbca67e1e70a12db4f4b5c2111e4d93.tar.xz
nova-76a82e57dfbca67e1e70a12db4f4b5c2111e4d93.zip
Added support for feature parity with the current Rackspace Cloud Servers practice of "injecting" files into newly-created instances for configuration, etc. However, this is in no way restricted to only writing files to the guest when it is first created.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 009ef6db1..486eca508 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -177,7 +177,8 @@ class Controller(wsgi.Controller):
display_name=env['server']['name'],
display_description=env['server']['name'],
key_name=key_pair['name'],
- key_data=key_pair['public_key'])
+ key_data=key_pair['public_key'],
+ onset_files=env.get('onset_files', []))
return _translate_keys(instances[0])
def update(self, req, id):