commit | 72a0cfed2fe38ed1c1e20805598fb893673b8b5b | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Fri Jan 04 14:37:53 2013 -0800 |
committer | Rich Lane <rich.lane@bigswitch.com> | Fri Jan 04 15:08:58 2013 -0800 |
tree | 70b22bd4836abe4d2a27d603c3fdd2cd54863773 | |
parent | c52a1c46dac37c3d1d4ad6672e33abe635982bd1 [diff] [blame] |
action_list: support setting actions in constructor
diff --git a/src/python/oftest/action_list.py b/src/python/oftest/action_list.py index 75c014d..fbbddea 100644 --- a/src/python/oftest/action_list.py +++ b/src/python/oftest/action_list.py
@@ -54,8 +54,10 @@ """ - def __init__(self): - self.actions = [] + def __init__(self, actions=None): + if actions == None: + actions = [] + self.actions = actions def pack(self): """