From: Haibin Huang Date: Tue, 11 Feb 2020 06:35:11 +0000 (+0800) Subject: fix sonar bug X-Git-Tag: 1.5.4~14 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F101506%2F1;p=multicloud%2Fopenstack.git fix sonar bug Issue-ID: MULTICLOUD-695 Signed-off-by: Haibin Huang Change-Id: I25bad8edd1571f2c143c55f04138c5c464e75d07 --- diff --git a/hpa/hpa/hpa_discovery.py b/hpa/hpa/hpa_discovery.py index 69b9f222..acc10c3c 100644 --- a/hpa/hpa/hpa_discovery.py +++ b/hpa/hpa/hpa_discovery.py @@ -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 :