Explorar o código

Allow no user for uchiwa

Dan Ragnar %!s(int64=8) %!d(string=hai) anos
pai
achega
6b316bc9a9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      templates/uchiwa_config.json.j2

+ 2 - 0
templates/uchiwa_config.json.j2

@@ -5,8 +5,10 @@
        "host": "{{ sensu_api_host }}",
        "ssl": {{ sensu_api_ssl | lower }},
        "port": {{ uchiwa_sensu_api_port }},
+       {% if sensu_api_user_name | length > 0 %}
        "user": "{{ sensu_api_user_name }}",
        "pass": "{{ sensu_api_password }}",
+       {% endif %}
        "path": "{{ sensu_api_uchiwa_path }}",
        "timeout": {{ sensu_api_timeout }}
    }