Fix logic for the case when DecortController.k8s_provision method returns 0

This commit is contained in:
2024-05-17 14:11:51 +03:00
parent 6abd78882c
commit 5da120f2d3

View File

@@ -237,6 +237,9 @@ class decort_k8s(DecortController):
)
if not k8s_id:
if k8s_id == 0:
return
else:
self.result['failed'] = True
self.amodule.fail_json(**self.result)