X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fpython%2Frift%2Fmano%2Fconfig_agent%2Foperdata.py;h=94e9976419d3d69d373bc46195820b3a47d5c5cb;hb=a9f27dfefeafbd1d4b567d01b741a0a9e78249f5;hp=e89a823327ff3ae9784585f9bbe815dd79a1ddaf;hpb=90d1bcb7679b3019c4f8e7dbacd63df7bb7a93e2;p=osm%2FSO.git diff --git a/common/python/rift/mano/config_agent/operdata.py b/common/python/rift/mano/config_agent/operdata.py index e89a8233..94e99764 100644 --- a/common/python/rift/mano/config_agent/operdata.py +++ b/common/python/rift/mano/config_agent/operdata.py @@ -69,8 +69,12 @@ class JujuClient(object): loop=loop, )) except Exception as e: + loop.close() + msg = "JujuClient: Connection Failed: %s", str(e) self._log.error(msg) + status = "failure" + details = msg raise Exception(msg) else: self._log.error("Success reached.") @@ -81,8 +85,8 @@ class JujuClient(object): loop.close() return RwConfigAgentYang.YangData_RwProject_Project_ConfigAgent_Account_ConnectionStatus( - status="unknown", - details="Connection status lookup not started" + status=status, + details=details, )