diff --git a/imageroot/actions/configure-module/80start_amld b/imageroot/actions/configure-module/80start_amld index 2e3a7dfe..d5513f6f 100755 --- a/imageroot/actions/configure-module/80start_amld +++ b/imageroot/actions/configure-module/80start_amld @@ -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)]) @@ -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")