Commit f61767ce by Fred Smith

Merge pull request #1519 from edx/derf/update_notifier_supervisor_config

these environment vars should strip whitespace
parents b36c700d da51eb5f
......@@ -26,7 +26,7 @@ stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
environment=PID='/var/tmp/notifier-celery-workers.pid',LANG=en_US.UTF-8,
{% do notifier_env_vars.update(NOTIFIER_ENV_EXTRA) %}
{%- do notifier_env_vars.update(NOTIFIER_ENV_EXTRA) -%}
{%- for name,value in notifier_env_vars.items() -%}
{%- if value -%}{{name}}="{{value}}"{%- if not loop.last -%},{%- endif -%}{%- endif -%}
{%- endfor -%}
......@@ -26,7 +26,7 @@ stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
environment=PID='/var/tmp/notifier-scheduler.pid',LANG=en_US.UTF-8,
{% do notifier_env_vars.update(NOTIFIER_ENV_EXTRA) %}
{%- do notifier_env_vars.update(NOTIFIER_ENV_EXTRA) -%}
{%- for name,value in notifier_env_vars.items() -%}
{%- if value -%}{{name}}="{{value}}"{%- if not loop.last -%},{%- endif -%}{%- endif -%}
{%- endfor -%}
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