diff options
-rw-r--r-- | snaps/config/security_group.py | 2 |
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') |