Commit e1486d7d authored by Bruno Boiget's avatar Bruno Boiget

clear cache on exec.deploy

parent 9622b48c
Pipeline #487 passed with stage
in 0 seconds
......@@ -108,10 +108,12 @@ class SaltRunner(ZephirCommonController):
try:
deploy_command = 'state.apply'
deploy_arg = 'eole.configuration.deploy'
return self.executor.exec_command(minion_pattern=minion_pattern,
command=deploy_command,
arg=deploy_arg)
ret = self.executor.exec_command(minion_pattern=minion_pattern,
command=deploy_command,
arg=deploy_arg)
self.executor.exec_command(minion_pattern=minion_pattern,
command='saltutil.clear_cache')
return ret
except SaltExecErrorMissingMinionPattern as err:
raise ApplicationError('execution.salt.exec.error.missing-minion_pattern', reason=str(err))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment