Fix logic for the case when DecortController.k8s_provision method returns 0
This commit is contained in:
@@ -237,6 +237,9 @@ class decort_k8s(DecortController):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not k8s_id:
|
if not k8s_id:
|
||||||
|
if k8s_id == 0:
|
||||||
|
return
|
||||||
|
else:
|
||||||
self.result['failed'] = True
|
self.result['failed'] = True
|
||||||
self.amodule.fail_json(**self.result)
|
self.amodule.fail_json(**self.result)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user