git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge latest code
[plstackapi.git]
/
plstackapi
/
openstack
/
driver.py
diff --git
a/plstackapi/openstack/driver.py
b/plstackapi/openstack/driver.py
index
8b475de
..
8817990
100644
(file)
--- a/
plstackapi/openstack/driver.py
+++ b/
plstackapi/openstack/driver.py
@@
-195,7
+195,8
@@
class OpenStackDriver:
image_id = images[0]['id']
hints = {}
if hostname:
- hints['force_hosts']= hostname
+ #hints['force_hosts']= hostname
+ hints['availability-zone'] = 'nova:%s' % hostname
server = self.shell.nova.servers.create(
name=name,
key_name = key_name,