X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fpub%2Futils%2Fnotificationsutil.py;h=a89503160d364f9c91a04a7971fcf1564c0cda86;hb=refs%2Fchanges%2F24%2F86124%2F2;hp=0a0e1f2dbcb7cfa87e6e853064dd3eaf19104ce7;hpb=b644c9b0970c8a345abc1d0eee404e901efa5eac;p=vfc%2Fgvnfm%2Fvnflcm.git 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):