From 10be5eb908f6dc6d35faa24dc5151f1747d50ce3 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Tue, 12 Jan 2016 13:32:39 +0100 Subject: [PATCH] cloudstack: cs_portforward: fix missing return and remove unused arg --- lib/ansible/modules/extras/cloud/cloudstack/cs_portforward.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/cloudstack/cs_portforward.py b/lib/ansible/modules/extras/cloud/cloudstack/cs_portforward.py index 339ee697be..97841dd01b 100644 --- a/lib/ansible/modules/extras/cloud/cloudstack/cs_portforward.py +++ b/lib/ansible/modules/extras/cloud/cloudstack/cs_portforward.py @@ -230,7 +230,7 @@ class AnsibleCloudStackPortforwarding(AnsibleCloudStack): 'publicport': 'public_port', 'publicendport': 'public_end_port', 'privateport': 'private_port', - 'private_end_port': 'private_end_port', + 'privateendport': 'private_end_port', } self.portforwarding_rule = None self.vm_default_nic = None @@ -322,7 +322,6 @@ class AnsibleCloudStackPortforwarding(AnsibleCloudStack): args['publicendport'] = self.get_or_fallback('public_end_port', 'public_port') args['privateport'] = self.module.params.get('private_port') args['privateendport'] = self.get_or_fallback('private_end_port', 'private_port') - args['openfirewall'] = self.module.params.get('open_firewall') args['vmguestip'] = self.get_vm_guest_ip() args['ipaddressid'] = self.get_ip_address(key='id') args['virtualmachineid'] = self.get_vm(key='id')