cloudstack: cs_instance_nic: remove duplicate code (#26869)

This commit is contained in:
René Moser 2017-07-16 11:41:36 +02:00 committed by GitHub
parent 2fc1df7870
commit 5979f2543f

View file

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