Change expected response code for the aodh check for Pike+
Starts from Pike http response code is 200
Change-Id: I24294c4a708266173fdc3dcd966f285eaedd8081
Related-PROD: PROD-26918 (PROD:26918)
diff --git a/aodh/meta/telegraf.yml b/aodh/meta/telegraf.yml
index c0ffc04..bc85b31 100644
--- a/aodh/meta/telegraf.yml
+++ b/aodh/meta/telegraf.yml
@@ -6,5 +6,5 @@
http_response:
aodh-api:
address: "{{ protocol }}://{{ server.bind.host|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.port }}/"
- expected_code: 401
+ expected_code: {% if server.version in ['juno', 'kilo', 'liberty', 'mitaka', 'newton', 'ocata'] %}401{% else %}200{% endif %}
{%- endif %}