1/* This file is part of Eclat.
2   Copyright (C) 2012-2018 Sergey Poznyakoff.
3
4   Eclat is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 3, or (at your option)
7   any later version.
8
9   Eclat is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU General Public License for more details.
13
14   You should have received a copy of the GNU General Public License
15   along with Eclat.  If not, see <http://www.gnu.org/licenses/>. */
16
17if (.AuthorizeSecurityGroupIngressResponse.return) {
18  if (!.AuthorizeSecurityGroupIngressResponse.return[true]) {
19    error("Return: ",.AuthorizeSecurityGroupIngressResponse.return,"\n");
20    exit(1);
21  }
22} else if (.RevokeSecurityGroupIngressResponse.return) {
23  if (!.RevokeSecurityGroupIngressResponse.return[true]) {
24    error("Return: ",.RevokeSecurityGroupIngressResponse.return,"\n");
25    exit(1);
26  }
27} else if (.AuthorizeSecurityGroupEgressResponse.return) {
28  if (!.AuthorizeSecurityGroupEgressResponse.return[true]) {
29    error("Return: ",.AuthorizeSecurityGroupEressResponse.return,"\n");
30    exit(1);
31  }
32} else if (.RevokeSecurityGroupEgressResponse.return) {
33  if (!.RevokeSecurityGroupEgressResponse.return[true]) {
34    error("Return: ",.RevokeSecurityGroupEgressResponse.return,"\n");
35    exit(1);
36  }
37}
38
39