Module: check_mk
Branch: master
Commit: 020a6e65a27c0c628e3915d2da6eeb4784d769a0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=020a6e65a27c0c…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Sat Feb 9 16:15:52 2019 +0100
agent_aws: Fixed default value for AWSColleagueContents content in S3 section
Change-Id: I478538a36760324e3adc01ebdf258cc8cfe46df4
---
agents/special/agent_aws | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index 2aaf6f3..801794c 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -617,7 +617,6 @@ class S3Summary(AWSSectionGeneric):
#_response = self._client.get_public_access_block(Bucket=bucket_name)
#_response = self._client.get_bucket_policy_status(Bucket=bucket_name)
# 'S3' object has no attribute 'get_bucket_policy_status'
- # 'list' object has no attribute 'iterkeys'
try:
response = self._client.get_bucket_tagging(Bucket=bucket_name)
@@ -675,7 +674,7 @@ class S3(AWSSectionCloudwatch):
if colleague and colleague.content:
return AWSColleagueContents({bucket['Name']: bucket for bucket in
colleague.content},
colleague.cache_timestamp)
- return AWSColleagueContents([], 0)
+ return AWSColleagueContents({}, 0)
def _get_metrics(self, colleague_contents):
metrics = []