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

rc-5.3.0^2
Dmitriy Smirnov 9 months ago
parent 6abd78882c
commit 5da120f2d3

@ -235,10 +235,13 @@ class decort_k8s(DecortController):
self.amodule.params['description'],
self.amodule.params['extnet_only'],
)
if not k8s_id:
self.result['failed'] = True
self.amodule.fail_json(**self.result)
if k8s_id == 0:
return
else:
self.result['failed'] = True
self.amodule.fail_json(**self.result)
self.k8s_id,self.k8s_info = self.k8s_find(k8s_id=k8s_id,
k8s_name=self.amodule.params['name'],

Loading…
Cancel
Save