diff options
Diffstat (limited to 'roles/lib_openshift/src/lib/rule.py')
-rw-r--r-- | roles/lib_openshift/src/lib/rule.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/roles/lib_openshift/src/lib/rule.py b/roles/lib_openshift/src/lib/rule.py index 628129832..d1e900427 100644 --- a/roles/lib_openshift/src/lib/rule.py +++ b/roles/lib_openshift/src/lib/rule.py @@ -90,6 +90,7 @@ class Rule(object): def add_resource(self, inc_resource): '''add an resource to the resources array''' + self.resources.append(inc_resource) def remove_verb(self, inc_verb): '''add a verb to the verbs array''' @@ -123,10 +124,10 @@ class Rule(object): def __eq__(self, other): '''return whether rules are equal''' - return self.attribute_restrictions == other.attribute_restrictions and \ - self.api_groups == other.api_groups and \ - self.resources == other.resources and \ - self.verbs == other.verbs + return (self.attribute_restrictions == other.attribute_restrictions and + self.api_groups == other.api_groups and + self.resources == other.resources and + self.verbs == other.verbs) @staticmethod |