diff options
Diffstat (limited to 'heat/engine/resources/aws/ec2/security_group.py')
-rw-r--r-- | heat/engine/resources/aws/ec2/security_group.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/heat/engine/resources/aws/ec2/security_group.py b/heat/engine/resources/aws/ec2/security_group.py index 38b298e8f..a1db04626 100644 --- a/heat/engine/resources/aws/ec2/security_group.py +++ b/heat/engine/resources/aws/ec2/security_group.py @@ -11,8 +11,6 @@ # License for the specific language governing permissions and limitations # under the License. -import six - from heat.common import exception from heat.common.i18n import _ from heat.engine import properties @@ -169,12 +167,12 @@ class NeutronSecurityGroup(object): rule['direction'] = 'egress' for rule in updated[self.sg.SECURITY_GROUP_INGRESS]: rule['direction'] = 'ingress' - updated_rules = list(six.itervalues(updated)) + updated_rules = list(updated.values()) updated_all = updated_rules[0] + updated_rules[1] ids_to_delete = [id for id, rule in existing.items() if rule not in updated_all] rules_to_create = [rule for rule in updated_all - if rule not in six.itervalues(existing)] + if rule not in existing.values()] return ids_to_delete, rules_to_create |