Fix tests without the LMA collector plugin

Change-Id: Ib4331cdc6894601f429cf526127cd2c7a9cc405f
This commit is contained in:
Simon Pasquier 2017-01-03 17:27:47 +01:00
parent da8614e608
commit 7116ddd0de
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ default_options = {
"elasticsearch_address/value": "127.0.0.1",
"influxdb_address/value": "127.0.0.1"
}
if version.startswith("0."):
if version and version.startswith("0."):
# Only 0.x versions expose the alerting_mode parameter
default_options["alerting_mode/value"] = "local"
@ -38,6 +38,6 @@ toolchain_options = {
"elasticsearch_mode/value": "local",
"influxdb_mode/value": "local",
}
if version.startswith("0."):
if version and version.startswith("0."):
# Only 0.x versions expose the alerting_mode parameter
toolchain_options["alerting_mode/value"] = "local"