summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--neutron_sec_group3
1 files changed, 2 insertions, 1 deletions
diff --git a/neutron_sec_group b/neutron_sec_group
index 0d882c9..a5b8a6d 100644
--- a/neutron_sec_group
+++ b/neutron_sec_group
@@ -310,7 +310,8 @@ def _update_sg_rules(module, network_client, sg, wanted_rules, tenant_id):
clean_new_rule[key] = None
continue
value = clean_new_rule[key]
- if isinstance(value, (str, unicode)) and value.isdigit():
+ if isinstance(value, (str, unicode)) and value.isdigit() and \
+ key != 'tenant_id':
clean_new_rule[key] = int(value)
if cmp(clean_old_rule, clean_new_rule) == 0:
matched_id = old_id