Initialise openstack.Manager() with config from self.nova.
diff --git a/kong/openstack.py b/kong/openstack.py
index 3575a8c..59d581d 100644
--- a/kong/openstack.py
+++ b/kong/openstack.py
@@ -5,11 +5,9 @@
class Manager(object):
"""Top-level object to access OpenStack resources."""
- def __init__(self):
- self.config = kong.config.StackConfig()
- self.nova = kong.nova.API(self.config.nova.host,
- self.config.nova.port,
- self.config.nova.base_url,
- self.config.nova.username,
- self.config.nova.api_key,
- self.config.nova.project_id)
+ def __init__(self, nova):
+ self.nova = kong.nova.API(nova['host'],
+ nova['port'],
+ nova['ver'],
+ nova['user'],
+ nova['key'])