Move execution of getConfig before if-condition of check mode in decort_k8s.package_facts method
This commit is contained in:
@@ -153,6 +153,9 @@ class decort_k8s(DecortController):
|
|||||||
config=None,
|
config=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self.amodule.params['getConfig'] and self.k8s_info['techStatus'] == "STARTED":
|
||||||
|
ret_dict['config'] = self.k8s_getConfig()
|
||||||
|
|
||||||
if check_mode:
|
if check_mode:
|
||||||
# in check mode return immediately with the default values
|
# in check mode return immediately with the default values
|
||||||
return ret_dict
|
return ret_dict
|
||||||
@@ -172,9 +175,6 @@ class decort_k8s(DecortController):
|
|||||||
ret_dict['k8s_Masters'] = self.k8s_info['k8sGroups']['masters']
|
ret_dict['k8s_Masters'] = self.k8s_info['k8sGroups']['masters']
|
||||||
ret_dict['k8s_Workers'] = self.k8s_info['k8sGroups']['workers']
|
ret_dict['k8s_Workers'] = self.k8s_info['k8sGroups']['workers']
|
||||||
|
|
||||||
if self.amodule.params['getConfig'] and self.k8s_info['techStatus'] == "STARTED":
|
|
||||||
ret_dict['config'] = self.k8s_getConfig()
|
|
||||||
|
|
||||||
return ret_dict
|
return ret_dict
|
||||||
|
|
||||||
def nop(self):
|
def nop(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user