cloudstack: cs_portforward: fix missing return and remove unused arg

This commit is contained in:
Rene Moser 2016-01-12 13:32:39 +01:00 committed by Matt Clay
parent f9383cb8ef
commit 10be5eb908

View file

@ -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')