Example #1
0
 def create_keystone_session(self):
     try:
         auth = KeystonePassword(**self.__keystoneCredentials)
         session = KeystoneSession(auth=auth, verify=self.__certificatesPath)
         session.get_project_id()
         return session
     except Exception as error:
         raise Exception('Connection to Keystone failed: {}'.format(error))