cloudstack: cs_instance_nic: remove duplicate code (#26869)

pull/25733/merge
René Moser 7 years ago committed by GitHub
parent 2fc1df7870
commit 5979f2543f

@ -204,8 +204,6 @@ class AnsibleCloudStackInstanceNic(AnsibleCloudStack):
} }
if not self.module.check_mode: if not self.module.check_mode:
res = self.query_api('addNicToVirtualMachine', **args) res = self.query_api('addNicToVirtualMachine', **args)
if 'errortext' in res:
self.module.fail_json(msg="Failed: '%s'" % res['errortext'])
if self.module.params.get('poll_async'): if self.module.params.get('poll_async'):
vm = self.poll_job(res, 'virtualmachine') vm = self.poll_job(res, 'virtualmachine')

Loading…
Cancel
Save