fix 1204: Changed the individual assignments for a chained assignment of the variables 90/9690/13 v8.0 v8.0.3 v8.0.4
authorfonsecaj <jpedrofonseca@av.it.pt>
Fri, 4 Sep 2020 17:00:23 +0000 (19:00 +0200)
committerfonsecaj <jpedrofonseca@av.it.pt>
Tue, 3 Nov 2020 20:01:22 +0000 (21:01 +0100)
Change-Id: I6d98ccd05b06f6d50596edea342a99546c737ced
Signed-off-by: fonsecaj <jpedrofonseca@av.it.pt>
osm_mon/collector/utils/openstack.py

index 039ce61..b23bd24 100644 (file)
@@ -31,10 +31,7 @@ class OpenstackUtils:
     @staticmethod
     def get_session(creds: dict):
         verify_ssl = True
-        project_domain_id = None
-        user_domain_id = None
-        project_domain_name = None
-        user_domain_name = None
+        project_domain_id = project_domain_name = user_domain_id = user_domain_name = None
         if 'config' in creds:
             vim_config = creds['config']
             if 'insecure' in vim_config and vim_config['insecure']: