Skip to content

Commit

Permalink
Assign default value to RuleAPI.criteria.
Browse files Browse the repository at this point in the history
  • Loading branch information
manasdk committed Aug 1, 2014
1 parent a11350e commit 3528918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion st2common/st2common/models/api/reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class RuleAPI(StormBaseAPI):
does not lead to execution of a action and vice-versa.
"""
trigger = wstypes.DictType(str, str)
criteria = wstypes.DictType(str, wstypes.DictType(str, str))
criteria = wstypes.wsattr(wstypes.DictType(str, wstypes.DictType(str, str)), default=True)
action = ActionSpec
enabled = wstypes.wsattr(bool, default=True)

Expand Down

0 comments on commit 3528918

Please sign in to comment.