file are now injected via personality argument
diff --git a/planetstack/openstack/driver.py b/planetstack/openstack/driver.py
index 80dd489..5b8e728 100644
--- a/planetstack/openstack/driver.py
+++ b/planetstack/openstack/driver.py
@@ -415,9 +415,12 @@
if not security_group:
security_group = self.config.nova_default_security_group
- files = {}
+ personality = []
if pubkeys:
- files['/root/.ssh/authorized_keys'] = "\n".join(pubkeys)
+ personality.append({
+ 'path': '/root/.ssh/authorized_keys',
+ 'contents':"\n".join(pubkeys),
+ })
hints = {}
availability_zone = None
if hostname:
@@ -428,7 +431,7 @@
flavor=flavor.id,
image=image_id,
security_group = security_group,
- files=files,
+ personality = personality,
scheduler_hints=hints,
availability_zone=availability_zone,
nics=nics,