summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Pisarski <s.pisarski@cablelabs.com>2018-02-15 14:24:14 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-15 14:24:14 +0000
commit764fcbbdb1e91a64d1abec9554badf61bf72ead9 (patch)
tree7ae468029afc4c1ad1910d398e07c040fbcd84a6
parent725293a89c9d026339e39edfe2cdcf807677a4a7 (diff)
parent4dc7181e433296d2ad7b69e0cf4be2c0f14ff4c5 (diff)
Merge "Compare strings instead of objects in SecurityGroupConfig"
-rw-r--r--snaps/config/security_group.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snaps/config/security_group.py b/snaps/config/security_group.py
index 32a1e95..16e68c7 100644
--- a/snaps/config/security_group.py
+++ b/snaps/config/security_group.py
@@ -54,7 +54,7 @@ class SecurityGroupConfig(object):
raise SecurityGroupConfigError('The attribute name is required')
for rule_setting in self.rule_settings:
- if rule_setting.sec_grp_name is not self.name:
+ if rule_setting.sec_grp_name != self.name:
raise SecurityGroupConfigError(
'Rule settings must correspond with the name of this '
'security group')