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:
parent
22d8fa90ad
commit
a9dd2c38a0
|
@ -357,7 +357,7 @@ def _are_identical_rules(rule1, rule2):
|
||||||
for key, value in rule.items():
|
for key, value in rule.items():
|
||||||
if (value is not None and value != -1 and
|
if (value is not None and value != -1 and
|
||||||
value != '0.0.0.0/0' 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',
|
'description', 'revision', 'revision_number',
|
||||||
'created_at', 'updated_at', 'project_id']):
|
'created_at', 'updated_at', 'project_id']):
|
||||||
dict[key] = str(value)
|
dict[key] = str(value)
|
||||||
|
|
Loading…
Reference in New Issue