fix 2
This commit is contained in:
@@ -333,6 +333,8 @@ def main():
|
|||||||
if subj.k8s_should_exist:
|
if subj.k8s_should_exist:
|
||||||
subj.result['facts'] = subj.package_facts(amodule.check_mode)
|
subj.result['facts'] = subj.package_facts(amodule.check_mode)
|
||||||
amodule.exit_json(**subj.result)
|
amodule.exit_json(**subj.result)
|
||||||
|
else:
|
||||||
|
amodule.exit_json(**subj.result)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -2857,6 +2857,7 @@ class DecortController(object):
|
|||||||
self.decort_api_call(requests.post, "/restmachine/cloudapi/k8s/delete", api_params)
|
self.decort_api_call(requests.post, "/restmachine/cloudapi/k8s/delete", api_params)
|
||||||
# On success the above call will return here. On error it will abort execution by calling fail_json.
|
# On success the above call will return here. On error it will abort execution by calling fail_json.
|
||||||
self.result['failed'] = False
|
self.result['failed'] = False
|
||||||
|
self.result['msg'] = "k8s_delete() K8s cluster ID {} was deleted.".format(k8s_id)
|
||||||
self.result['changed'] = True
|
self.result['changed'] = True
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user