Added default result of None in catch statement
parent
43da26404b
commit
015cf1f785
|
@ -264,6 +264,7 @@ DRY_RUN_MSGS = 'DryRun Mode:'
|
||||||
|
|
||||||
def convert_to_lower(data):
|
def convert_to_lower(data):
|
||||||
"""Convert all uppercase keys in dict with lowercase_
|
"""Convert all uppercase keys in dict with lowercase_
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
data (dict): Dictionary with keys that have upper cases in them
|
data (dict): Dictionary with keys that have upper cases in them
|
||||||
Example.. FooBar == foo_bar
|
Example.. FooBar == foo_bar
|
||||||
|
@ -758,6 +759,7 @@ def create(client, subnet_id, allocation_id, client_token=None,
|
||||||
err_msg = str(e)
|
err_msg = str(e)
|
||||||
success = False
|
success = False
|
||||||
changed = False
|
changed = False
|
||||||
|
result = None
|
||||||
|
|
||||||
return success, changed, err_msg, result
|
return success, changed, err_msg, result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue