Skip to content

Commit

Permalink
rename 'accept' action to 'allow'
Browse files Browse the repository at this point in the history
  • Loading branch information
shaleman committed Feb 1, 2016
1 parent 20bdc07 commit cfbecf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contivModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -2318,7 +2318,7 @@ func ValidateRule(obj *Rule) error {

// Validate each field

actionMatch := regexp.MustCompile("^(accept|deny)$")
actionMatch := regexp.MustCompile("^(allow|deny)$")
if actionMatch.MatchString(obj.Action) == false {
return errors.New("action string invalid format")
}
Expand Down
2 changes: 1 addition & 1 deletion rule.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
},
"action": {
"type": "string",
"format": "^(accept|deny)$",
"format": "^(allow|deny)$",
"title": "Action",
"showSummary": true
}
Expand Down

0 comments on commit cfbecf9

Please sign in to comment.