Skip to content

Commit

Permalink
* Fix error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Mar 17, 2021
1 parent 500be22 commit 8f974e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ec2_vpc_nat_gateway_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _describe_nat_gateways(client, module, **params):
except is_boto3_error_code('InvalidNatGatewayID.NotFound'):
module.exit_json(msg="NAT gateway not found.")
except is_boto3_error_code('NatGatewayMalformed'): # pylint: disable=duplicate-except
module.exit_json(msg="NAT gateway id is malformed.")
module.fail_json(msg="NAT gateway id is malformed.")


def get_nat_gateways(client, module):
Expand Down

0 comments on commit 8f974e0

Please sign in to comment.