projects
/
osm
/
POL.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13b532
)
Makes actions in vnf alarm optional
35/7535/1
author
Benjamin Diaz
<bdiaz@whitestack.com>
Tue, 21 May 2019 15:31:15 +0000
(12:31 -0300)
committer
Benjamin Diaz
<bdiaz@whitestack.com>
Tue, 21 May 2019 15:31:15 +0000
(12:31 -0300)
Change-Id: I4db3e01903d4c82cd8c89529e62fc0146853969f
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
osm_policy_module/alarming/service.py
patch
|
blob
|
history
diff --git
a/osm_policy_module/alarming/service.py
b/osm_policy_module/alarming/service.py
index
c54e02d
..
590b06a
100644
(file)
--- 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,