Skip to content

Commit f6d95cf

Browse files
committed
env template logic for user hashes
1 parent bb5c183 commit f6d95cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

templates/api-env.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ATTACKMATE_CONFIG_PATH="/etc/attackmate.yml"
44
WRITE_PLAYBOOK_LOGS_TO_DISK="{{ attackmate_api_logs_to_disk }}"
55
LOG_DIR="{{ attackmate_api_log_dir }}"
66
ATTACKMATE_API_SERVER_PORT="{{ attackmate_api_server_port }}"
7-
{% if attackmate_api_users is defined %}
7+
{% if attackmate_api_users is defined and attackmate_api_users %}
88
USERS='{{ attackmate_api_users }}'
9+
{% elif attackmate_api_plain_users | length == 0 %}
10+
# No users configured — set USERS here or re-run with attackmate_api_plain_users defined
911
{% endif %}

0 commit comments

Comments
 (0)