Skip to content

Commit

Permalink
Fixed message argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Mellberg committed Feb 7, 2024
1 parent aa9dc6c commit fa1eced
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kea_exporter/base_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ def parse_metrics(self, dhcp_version, arguments, subnets):
if subnet_id not in self.subnet_missing_info_sent.get(dhcp_version, []):
self.subnet_missing_info_sent.get(dhcp_version, []).append(subnet_id)
click.echo(
"Ignoring metric because subnet vanished from configuration:",
f"\tdhcp_version: {dhcp_version.name}, subnet_id: {subnet_id}",
"Ignoring metric because subnet vanished from configuration: "
f"dhcp_version: {dhcp_version.name}, subnet_id: {subnet_id}",
file=sys.stderr,
)
continue
Expand All @@ -499,8 +499,8 @@ def parse_metrics(self, dhcp_version, arguments, subnets):
if f"{subnet_id}-{pool_index}" not in self.subnet_missing_info_sent.get(dhcp_version, []):
self.subnet_missing_info_sent.get(dhcp_version, []).append(f"{subnet_id}-{pool_index}")
click.echo(
"Ignoring metric because subnet vanished from configuration:",
f"\tdhcp_version: {dhcp_version.name}, subnet_id: {subnet_id}, pool_idx: {pool_index}",
"Ignoring metric because subnet vanished from configuration: "
f"dhcp_version: {dhcp_version.name}, subnet_id: {subnet_id}, pool_idx: {pool_index}",
file=sys.stderr,
)
continue
Expand Down

0 comments on commit fa1eced

Please sign in to comment.