1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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:
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'):
vm = self.poll_job(res, 'virtualmachine')