Skip to content

Commit

Permalink
api-moduled. fix indendation
Browse files Browse the repository at this point in the history
  • Loading branch information
edospadoni committed Dec 4, 2023
1 parent b1fd138 commit 5f3c24b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions imageroot/actions/configure-module/80start_amld
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ node_id = int(os.environ['NODE_ID'])
domain = os.environ['REALM'].lower()
amld_port = os.environ['TCP_PORT']

# Ensure TCP port for api-moduled was allocated
agent.assert_exp(int(amld_port) > 0)
agent.assert_exp(int(amld_port) > 0) # Ensure TCP port for api-moduled was allocated

alphabet = string.ascii_letters + string.digits + '+-/,.-_^'
amld_secret = ''.join([secrets.choice(alphabet) for i in range(32)])
Expand Down Expand Up @@ -72,5 +71,4 @@ trx.execute()
with open(f'{agent_install_dir}/api-moduled/public/config.json', 'w+') as f:
json.dump({"domain": domain}, f)

agent.run_helper("systemctl", "-T", "--user", "enable",
"--now", "api-moduled.service")
agent.run_helper("systemctl", "-T", "--user", "enable", "--now", "api-moduled.service")

0 comments on commit 5f3c24b

Please sign in to comment.