From 244a269a221ac02157c27e5252909a209d3fed8f Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Tue, 11 Feb 2020 14:35:11 +0800 Subject: fix sonar bug Issue-ID: MULTICLOUD-695 Signed-off-by: Haibin Huang Change-Id: I25bad8edd1571f2c143c55f04138c5c464e75d07 --- hpa/hpa/hpa_discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 : -- cgit 1.2.3-korg