X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Fns%2Fbiz%2Fns_heal.py;h=8ca033fcee288ef594917fd4eb94749e93fc08dd;hb=f0c32021572945e00a30570d2323babb03401d16;hp=19994dfa0f6f8ddf09122e3af73f72b3be97e6af;hpb=f2a5c03d4d695a5f10c1275aa1aa12c9279b5950;p=vfc%2Fnfvo%2Flcm.git diff --git a/lcm/ns/biz/ns_heal.py b/lcm/ns/biz/ns_heal.py index 19994dfa..8ca033fc 100644 --- a/lcm/ns/biz/ns_heal.py +++ b/lcm/ns/biz/ns_heal.py @@ -44,12 +44,12 @@ class NSHealService(threading.Thread): try: self.do_biz() except NSLCMException as e: - JobUtil.add_job_status(self.job_id, JOB_PROGRESS.ERROR, e.message) - NsLcmOpOcc.update(self.occ_id, operationState="FAILED", error=e.message) + JobUtil.add_job_status(self.job_id, JOB_PROGRESS.ERROR, e.args[0]) + NsLcmOpOcc.update(self.occ_id, operationState="FAILED", error=e.args[0]) except Exception as e: logger.error(traceback.format_exc()) JobUtil.add_job_status(self.job_id, JOB_PROGRESS.ERROR, 'ns heal fail') - NsLcmOpOcc.update(self.occ_id, operationState="FAILED", error=e.message) + NsLcmOpOcc.update(self.occ_id, operationState="FAILED", error=e.args[0]) def do_biz(self): self.update_job(1, desc='ns heal start')