diff options
Diffstat (limited to 'snaps/openstack/openstack_creator.py')
-rw-r--r-- | snaps/openstack/openstack_creator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/snaps/openstack/openstack_creator.py b/snaps/openstack/openstack_creator.py index 0caee9a..1f67951 100644 --- a/snaps/openstack/openstack_creator.py +++ b/snaps/openstack/openstack_creator.py @@ -29,8 +29,10 @@ class OpenStackCloudObject(CloudObject): Constructor :param os_creds: the OpenStack credentials object """ - # super(self.__class__, self, os_creds) self._os_creds = os_creds + keystone = keystone_utils.keystone_client(os_creds) + self.project_id = keystone_utils.get_project( + keystone=keystone, project_name=os_creds.project_name).id def initialize(self): raise NotImplementedError('Do not override abstract method') |