Dan Ragnar пре 7 година
родитељ
комит
6b316bc9a9
1 измењених фајлова са 2 додато и 0 уклоњено
  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 }}
    }