Module: check_mk
Branch: master
Commit: 1c07ad139fd4fd1931e5767a90893612be394a58
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1c07ad139fd4fd…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jan 7 11:09:43 2019 +0100
agent_aws: Fixed wrong data type
Change-Id: I21e0feb365c803b5ea04053079c40771ec2c0008
---
agents/special/agent_aws | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index 0ba90ec..d6b66f8 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -580,14 +580,14 @@ class EBSSummary(AWSSection):
volumes = {r['VolumeId']: r for r in response['Volumes']}
except KeyError, e:
logging.info("%s: KeyError %s; Available are %s", self.name, e,
response.keys())
- volumes = []
+ volumes = {}
response = self._client.describe_volume_status()
try:
volume_states = {r['VolumeId']: r for r in
response['VolumeStatuses']}
except KeyError, e:
logging.info("%s: KeyError %s; Available are %s", self.name, e,
response.keys())
- volume_states = []
+ volume_states = {}
raw_result = []
for volume_id in set(volumes.keys()).union(set(volume_states.keys())):