fix sonar bug 06/101506/1
authorHaibin Huang <haibin.huang@intel.com>
Tue, 11 Feb 2020 06:35:11 +0000 (14:35 +0800)
committerHaibin Huang <haibin.huang@intel.com>
Tue, 11 Feb 2020 06:35:11 +0000 (14:35 +0800)
Issue-ID: MULTICLOUD-695
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Change-Id: I25bad8edd1571f2c143c55f04138c5c464e75d07

hpa/hpa/hpa_discovery.py

index 69b9f22..acc10c3 100644 (file)
@@ -430,7 +430,7 @@ class HPA_Discovery(base.HPA_DiscoveryBase):
                     try:
                         cloud_extra_info_str = json.loads(cloud_extra_info_str)
                     except Exception as ex:
-                        logger.error("Can not convert cloud extra info %s %s" % (
+                        self._logger.error("Can not convert cloud extra info %s %s" % (
                                      str(ex), cloud_extra_info_str))
                         return {}
                 if cloud_extra_info_str :