From 5979f2543fe894655c9e7094e87ed01337dc11c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Sun, 16 Jul 2017 11:41:36 +0200 Subject: [PATCH] cloudstack: cs_instance_nic: remove duplicate code (#26869) --- lib/ansible/modules/cloud/cloudstack/cs_instance_nic.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/modules/cloud/cloudstack/cs_instance_nic.py b/lib/ansible/modules/cloud/cloudstack/cs_instance_nic.py index af38683468f..2bc205a0655 100644 --- a/lib/ansible/modules/cloud/cloudstack/cs_instance_nic.py +++ b/lib/ansible/modules/cloud/cloudstack/cs_instance_nic.py @@ -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')