Skip to content

Commit

Permalink
Update configure-module action to use boolean values for lets_encrypt…
Browse files Browse the repository at this point in the history
… and http2https environment variables
  • Loading branch information
stephdl committed Apr 26, 2024
1 parent b0c67ad commit 65057ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions imageroot/actions/clone-module/50configure-module
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import os

configure_retval = agent.tasks.run(agent_id=os.environ['AGENT_ID'], action='configure-module', data={
"mail_server": os.environ["MAIL_SERVER"],
"lets_encrypt": os.environ["TRAEFIK_LETS_ENCRYPT"],
"lets_encrypt": os.environ["TRAEFIK_LETS_ENCRYPT"] == 'True',
"host": os.environ["TRAEFIK_HOST"],
"http2https": os.environ["TRAEFIK_HTTP2HTTPS"],
"http2https": os.environ["TRAEFIK_HTTP2HTTPS"] == 'True',
})
agent.assert_exp(configure_retval['exit_code'] == 0, "The configure-module subtask failed!")
4 changes: 2 additions & 2 deletions imageroot/actions/restore-module/50configure-module
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ renv = request['environment']

configure_retval = agent.tasks.run(agent_id=os.environ['AGENT_ID'], action='configure-module', data={
"mail_server": renv["MAIL_SERVER"],
"lets_encrypt": renv["TRAEFIK_LETS_ENCRYPT"],
"lets_encrypt": renv["TRAEFIK_LETS_ENCRYPT"] == 'True',
"host": renv["TRAEFIK_HOST"],
"http2https": renv["TRAEFIK_HTTP2HTTPS"],
"http2https": renv["TRAEFIK_HTTP2HTTPS"] == 'True',
})
agent.assert_exp(configure_retval['exit_code'] == 0, "The configure-module subtask failed!")

0 comments on commit 65057ed

Please sign in to comment.