Module: check_mk
Branch: master
Commit: 47d3bd928a10b9d13c99942cc1615173b59b3d7c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=47d3bd928a10b9…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri Mar 8 12:35:45 2019 +0100
agent_azure: be lazy when formatting selector
Change-Id: I4ddcb7a12f333df113b02cd9a155553e34911d9d
---
agents/special/agent_azure | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/agents/special/agent_azure b/agents/special/agent_azure
index 47114b1..fa2f8d8 100755
--- a/agents/special/agent_azure
+++ b/agents/special/agent_azure
@@ -612,11 +612,10 @@ def main(argv=None):
args = parse_arguments(argv or sys.argv[1:])
selector = Selector(args)
- str_config = "Configuration:\n%s\n" % selector
if args.dump_config:
- sys.stdout.write(str_config)
+ sys.stdout.write("Configuration:\n%s\n" % selector)
return 0
- LOG.debug(str_config)
+ LOG.debug("%s", selector)
try:
client = AzureClient(args)