diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-24 16:20:59 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-24 16:26:33 +0800 |
commit | 3f63b351c906c800c0aba78f6b72914fa49239fe (patch) | |
tree | bdfee41466e874e867fa93492d6ad7defe451de7 /lcm/lcm/pub/utils | |
parent | b644c9b0970c8a345abc1d0eee404e901efa5eac (diff) |
Add lcm op occ to vnf heal
Change-Id: If99d1ccf70314f68f862972b4914564587df526b
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm/lcm/pub/utils')
-rw-r--r-- | lcm/lcm/pub/utils/notificationsutil.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lcm/lcm/pub/utils/notificationsutil.py b/lcm/lcm/pub/utils/notificationsutil.py index 0a0e1f2d..a8950316 100644 --- a/lcm/lcm/pub/utils/notificationsutil.py +++ b/lcm/lcm/pub/utils/notificationsutil.py @@ -171,10 +171,9 @@ def set_affected_vss(affected_vss, nfinstid, changetype): def get_notification_status(operation_state): - notification_status = const.LCM_NOTIFICATION_STATUS.START - if operation_state in const.RESULT_RANGE: - notification_status = const.LCM_NOTIFICATION_STATUS.RESULT - return notification_status + if operation_state == const.OPERATION_STATE_TYPE.STARTING: + return const.LCM_NOTIFICATION_STATUS.START + return const.LCM_NOTIFICATION_STATUS.RESULT def prepare_notification(nfinstid, jobid, operation, operation_state): |