blob: c0ffc0404693941fde57a04cf5df5b17edfe0375 [file] [log] [blame]
{%- from "aodh/map.jinja" import server with context %}
{%- if server.get('enabled', False) %}
{%- set protocol = server.get('identity', {}).get('protocol', 'http') %}
agent:
input:
http_response:
aodh-api:
address: "{{ protocol }}://{{ server.bind.host|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.port }}/"
expected_code: 401
{%- endif %}