Module: check_mk
Branch: master
Commit: 65ce17b9360c39f8d0e6138f5deb64e4ffc278f4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=65ce17b9360c39…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Feb 1 14:01:53 2019 +0100
agent_aws: Fixed security group mapping
Change-Id: Ic11347bcdf2fff97f90214efdff647f4f7f5cdb6
---
agents/special/agent_aws | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index 80ef1dc..7b01f2a 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -459,7 +459,7 @@ class EC2Summary(AWSSectionGeneric):
for security_group in colleague_contents.content:
for reservation in reservations:
if security_group['OwnerId'] == reservation['OwnerId']:
- reservation['SecurityGroup'] = security_group
+ reservation.setdefault('SecurityGroups',
[]).append(security_group)
return AWSComputedContent({
"Reservations": reservations,
"mapping": self._map_instance_id_to_name(reservations),