From b4fb1fda867dd17bdc5f294d9ca00cba1462d4f9 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Mon, 27 Apr 2015 20:12:45 +0200 Subject: [PATCH] cloudstack: cs_securitygroup_rule: type -> sg_type --- .../extras/cloud/cloudstack/cs_securitygroup_rule.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/cloudstack/cs_securitygroup_rule.py b/lib/ansible/modules/extras/cloud/cloudstack/cs_securitygroup_rule.py index 29b78958a52..26b44a2485d 100644 --- a/lib/ansible/modules/extras/cloud/cloudstack/cs_securitygroup_rule.py +++ b/lib/ansible/modules/extras/cloud/cloudstack/cs_securitygroup_rule.py @@ -305,15 +305,15 @@ class AnsibleCloudStackSecurityGroupRule(AnsibleCloudStack): rule = None res = None - type = self.module.params.get('type') - if type == 'ingress': + sg_type = self.module.params.get('type') + if sg_type == 'ingress': rule = self._get_rule(security_group['ingressrule']) if not rule: self.result['changed'] = True if not self.module.check_mode: res = self.cs.authorizeSecurityGroupIngress(**args) - elif type == 'egress': + elif sg_type == 'egress': rule = self._get_rule(security_group['egressrule']) if not rule: self.result['changed'] = True @@ -333,15 +333,15 @@ class AnsibleCloudStackSecurityGroupRule(AnsibleCloudStack): security_group = self.get_security_group() rule = None res = None - type = self.module.params.get('type') - if type == 'ingress': + sg_type = self.module.params.get('type') + if sg_type == 'ingress': rule = self._get_rule(security_group['ingressrule']) if rule: self.result['changed'] = True if not self.module.check_mode: res = self.cs.revokeSecurityGroupIngress(id=rule['ruleid']) - elif type == 'egress': + elif sg_type == 'egress': rule = self._get_rule(security_group['egressrule']) if rule: self.result['changed'] = True