cloudstack: cs_instance_nic: remove duplicate code (#26869)
This commit is contained in:
parent
2fc1df7870
commit
5979f2543f
1 changed files with 0 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue