Fix tests without the LMA collector plugin
Change-Id: Ib4331cdc6894601f429cf526127cd2c7a9cc405f
This commit is contained in:
parent
da8614e608
commit
7116ddd0de
@ -29,7 +29,7 @@ default_options = {
|
|||||||
"elasticsearch_address/value": "127.0.0.1",
|
"elasticsearch_address/value": "127.0.0.1",
|
||||||
"influxdb_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
|
# Only 0.x versions expose the alerting_mode parameter
|
||||||
default_options["alerting_mode/value"] = "local"
|
default_options["alerting_mode/value"] = "local"
|
||||||
|
|
||||||
@ -38,6 +38,6 @@ toolchain_options = {
|
|||||||
"elasticsearch_mode/value": "local",
|
"elasticsearch_mode/value": "local",
|
||||||
"influxdb_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
|
# Only 0.x versions expose the alerting_mode parameter
|
||||||
toolchain_options["alerting_mode/value"] = "local"
|
toolchain_options["alerting_mode/value"] = "local"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user