Hi,
I have added some check in the custom execution module. Which check if "credential_file" is defined using "__salt__". If its empty, it should raise an error.
181 class _info(object):
182 def __init__(self):
183 self.credential_file = __salt__['config.get']('credential_file')
[...]
235 a = _info()
236 if a.credential_file is not '':
237 credential_file = a.credential_file
238 else:
239 raise salt.exceptions.CommandExecutionError("credential_file is not defined anywhere")
But the execution of this module does not always check the code. I need to always refresh and sync the modules(saltutil.sync_all, saltutil.refresh_modules). i.e. after refreshing and syncing the module, it never checks if "credential_file" is defined/removed from pillar/grains/config.
Is there any solution for this?
Regards,
Pratik.