#2402 add action maps on all yaml scenarios used for testing

This commit is contained in:
Cristian-VM2
2024-04-01 14:28:41 +00:00
parent 2096b619ec
commit 80c13adfdf
7 changed files with 68 additions and 5 deletions

View File

@@ -997,7 +997,8 @@ class ActionManager:
{0: ("NODE_SERVICE_SCAN", {node_id:0, service_id:2})}
"""
if act_map is None:
raise RuntimeError("Action map must be specified in the config file.")
# raise RuntimeError("Action map must be specified in the config file.")
pass
else:
self.action_map = {i: (a["action"], a["options"]) for i, a in act_map.items()}
# make sure all numbers between 0 and N are represented as dict keys in action map