mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
cloudstack: cs_instance_nic: remove duplicate code (#26869)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user