Skip to content

Commit 7e0ad98

Browse files
authored
Ignore errors when deleting Data Hub in datahub_cluster (#115)
Signed-off-by: Webster Mudge <[email protected]>
1 parent 1649f3e commit 7e0ad98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/modules/datahub_cluster.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
import json
19+
1820
import jmespath
1921
from ansible.module_utils.basic import AnsibleModule
2022
from ansible_collections.cloudera.cloud.plugins.module_utils.cdp_common import CdpModule
@@ -534,7 +536,8 @@ def process(self):
534536
params=dict(name=self.name),
535537
field=None,
536538
delay=self.delay,
537-
timeout=self.timeout
539+
timeout=self.timeout,
540+
ignore_failures=True
538541
)
539542
else:
540543
self.module.fail_json(msg='Invalid state: %s' % self.state)
@@ -595,6 +598,7 @@ def _configure_payload(self):
595598
msg="Could not retrieve subnet metadata for CDP Environment %s" % self.env_crn)
596599

597600
subnets = self._filter_subnets(self.subnets_filter, subnet_metadata)
601+
self.module.warn("Found subnets: %s" % ", ".join(subnets))
598602
if len(subnets) == 1:
599603
self.subnet = subnets[0]
600604
else:

0 commit comments

Comments
 (0)