Commit 3f748384 authored by Matthieu Lamalle's avatar Matthieu Lamalle

Correction on download_env missing session_user

parent b12a7d5e
Pipeline #435 passed with stage
in 0 seconds
......@@ -120,8 +120,8 @@ class SaltRunner(ZephirCommonController):
except SaltExecErrorExecuteError as err:
raise ApplicationError('execution.salt.exec.error.execute', reason=str(err))
async def server_started(self,_session_user, server_id):
await self.download_env(_session_user,server_id)
async def server_started(self, server_id):
await self.download_env(server_id)
self.executor.exec_command(minion_pattern=str(server_id),
command='state.apply',
arg='eole.configuration.deploy')
......@@ -186,7 +186,8 @@ class SaltRunner(ZephirCommonController):
with open(env_file_path, 'w') as fh:
fh.write(servermodel['probes'])
async def download_env(self,_session_user,server_id):
async def download_env(self,server_id):
_session_user = {'profil': 'root'}
server = await self.call('v1.server.describe',
_session_user=_session_user,
serverid=server_id)
......
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