fix comparision of security group rules

ignore 'tags' field when compare openstack sg rule with ec2

Change-Id: If1076c3e9d4fb84dc524450da5a9d7912f4ffbde
Depends-On: I9377e988fbdc822df46e91c0db6c8012697bc2ee
This commit is contained in:
tikitavi 2017-07-27 15:14:59 +03:00 committed by Anastasia Kravets
parent 22d8fa90ad
commit a9dd2c38a0
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ def _are_identical_rules(rule1, rule2):
for key, value in rule.items():
if (value is not None and value != -1 and
value != '0.0.0.0/0' and
key not in ['id', 'tenant_id', 'security_group_id',
key not in ['id', 'tenant_id', 'security_group_id', 'tags',
'description', 'revision', 'revision_number',
'created_at', 'updated_at', 'project_id']):
dict[key] = str(value)