From 889c53c007d28ee5355d218a11d6612ce2b09d21 Mon Sep 17 00:00:00 2001 From: Benjamin Diaz Date: Tue, 21 May 2019 12:31:15 -0300 Subject: [PATCH] Makes actions in vnf alarm optional Change-Id: I4db3e01903d4c82cd8c89529e62fc0146853969f Signed-off-by: Benjamin Diaz --- osm_policy_module/alarming/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_policy_module/alarming/service.py b/osm_policy_module/alarming/service.py index c54e02d..590b06a 100644 --- a/osm_policy_module/alarming/service.py +++ b/osm_policy_module/alarming/service.py @@ -103,7 +103,7 @@ class AlarmingService: vdu_name=vdur['name'] ) for action_type in ['ok', 'insufficient-data', 'alarm']: - if action_type in alarm_descriptor['actions']: + if 'actions' in alarm_descriptor and action_type in alarm_descriptor['actions']: for url in alarm_descriptor['actions'][action_type]: AlarmActionRepository.create( type=action_type, -- 2.25.1