Add check mode logic to DecortController.k8s_workers_modify method.
This commit is contained in:
@@ -3561,6 +3561,13 @@ class DecortController(object):
|
||||
|
||||
self.result['waypoints'] = "{} -> {}".format(self.result['waypoints'], "k8s_workers_modify")
|
||||
|
||||
if self.amodule.check_mode:
|
||||
result_msg = 'k8s_workers_modify() in check mode: No changing.'
|
||||
if self.result.get('msg'):
|
||||
self.result['msg'] += f'\n{result_msg}'
|
||||
else:
|
||||
self.result['msg'] = result_msg
|
||||
return
|
||||
|
||||
if self.k8s_info['techStatus'] != "STARTED":
|
||||
self.result['msg'] = ("k8s_workers_modify(): Can't modify with TechStatus other then STARTED")
|
||||
|
||||
Reference in New Issue
Block a user