Module: check_mk
Branch: master
Commit: 9da5efe69a3997a9c9042c72e7cc10ab2c05ea66
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9da5efe69a3997…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Feb 13 12:22:25 2019 +0100
agent_aws: Fixed assert statement for checking piggyback hostname type
Change-Id: I3c7f1de516484ee71143ce28b725283ac2a1c514
---
agents/special/agent_aws | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index 9c9053b..4693b61 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -101,7 +101,7 @@ AWSSectionResults = NamedTuple("AWSSectionResults", [
])
AWSSectionResult = NamedTuple("AWSSectionResult", [
- ("piggyback_hostname", str),
+ ("piggyback_hostname", Any),
("content", Any),
])
@@ -198,8 +198,8 @@ class AWSSection(object):
continue
assert isinstance(
- result.piggyback_hostname,
- str), "%s: Piggyback hostname of created result must be of type
'str'" % self.name
+ result.piggyback_hostname, (unicode, str)
+ ), "%s: Piggyback hostname of created result must be of type
'unicode' or 'str'" % self.name
# In the related check plugin aws.include we parse these results and
# extend list of json-loaded results.
assert isinstance(result.content,