Module: check_mk
Branch: master
Commit: e24001ca8e210ae9809ba6354ca45854698eea39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e24001ca8e210a…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Apr 12 15:11:02 2019 +0200
aws.include: Fixed UnboundLocalError
Change-Id: Ida82cc59a5119183994197439a33f8543d9c1649
---
checks/aws.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/aws.include b/checks/aws.include
index 1f8b84e..d51327b 100644
--- a/checks/aws.include
+++ b/checks/aws.include
@@ -125,8 +125,8 @@ def check_aws_limits(aws_service, params, parsed):
infotext = '%s: %s (of max. %s)' % (resource_title,
human_readable_func(amount),
human_readable_func(limit_ref))
+ perfvar = "aws_%s_%s" % (aws_service, resource_key)
if _is_valid_aws_limits_perf_data(resource_key):
- perfvar = "aws_%s_%s" % (aws_service, resource_key)
perfdata.append((perfvar, amount))
if not limit_ref: