projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removes call to .lower on vnf_member_index in alarm creation
[osm/MON.git]
/
osm_mon
/
core
/
auth.py
diff --git
a/osm_mon/core/auth.py
b/osm_mon/core/auth.py
index
3a88a50
..
fa80256
100644
(file)
--- a/
osm_mon/core/auth.py
+++ b/
osm_mon/core/auth.py
@@
-47,11
+47,16
@@
class AuthManager:
def get_credentials(self, vim_uuid):
creds = self.database_manager.get_credentials(vim_uuid)
def get_credentials(self, vim_uuid):
creds = self.database_manager.get_credentials(vim_uuid)
- if creds.config is None:
- creds.config = {}
return creds
def delete_auth_credentials(self, creds_dict):
credentials = self.get_credentials(creds_dict['_id'])
if credentials:
credentials.delete_instance()
return creds
def delete_auth_credentials(self, creds_dict):
credentials = self.get_credentials(creds_dict['_id'])
if credentials:
credentials.delete_instance()
+
+ def get_config(self, vim_uuid):
+ return json.loads(self.get_credentials(vim_uuid).config)
+
+ def is_verify_ssl(self, vim_uuid):
+ vim_config = self.get_config(vim_uuid)
+ return 'insecure' not in vim_config or vim_config['insecure'] is False