From 015cf1f7854dead65b8ef22a7f027a9587bbd83d Mon Sep 17 00:00:00 2001 From: Allen Sanabria Date: Fri, 8 Apr 2016 14:29:59 -0700 Subject: [PATCH] Added default result of None in catch statement --- lib/ansible/modules/extras/cloud/amazon/ec2_vpc_nat_gateway.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_nat_gateway.py b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_nat_gateway.py index a333a9ac925..3d11e372463 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_nat_gateway.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_nat_gateway.py @@ -264,6 +264,7 @@ DRY_RUN_MSGS = 'DryRun Mode:' def convert_to_lower(data): """Convert all uppercase keys in dict with lowercase_ + Args: data (dict): Dictionary with keys that have upper cases in them Example.. FooBar == foo_bar @@ -758,6 +759,7 @@ def create(client, subnet_id, allocation_id, client_token=None, err_msg = str(e) success = False changed = False + result = None return success, changed, err_msg, result