Commit 53ed7b42 authored by Ad Schellevis's avatar Ad Schellevis

type error in configd

parent f21a4756
......@@ -274,7 +274,8 @@ class ActionHandler(object):
if command in self.action_map:
if action in self.action_map[command]:
if type(self.action_map[command][action]) == dict:
if len(parameters) > 0 and parameters[0] in self.action_map[command][action]:
if parameters is not None and len(parameters) > 0 \
and parameters[0] in self.action_map[command][action]:
# 3 level action ( "interface linkup start" for example )
if isinstance(self.action_map[command][action][parameters[0]], Action):
action_obj = self.action_map[command][action][parameters[0]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment