mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix dangerous default args. (#29839)
This commit is contained in:
@@ -40,7 +40,9 @@ from ansible.module_utils.ec2 import camel_dict_to_snake_dict
|
||||
|
||||
|
||||
class DirectConnectError(Exception):
|
||||
def __init__(self, msg, last_traceback=None, response={}):
|
||||
def __init__(self, msg, last_traceback=None, response=None):
|
||||
response = {} if response is None else response
|
||||
|
||||
self.msg = msg
|
||||
self.last_traceback = last_traceback
|
||||
self.response = camel_dict_to_snake_dict(response)
|
||||
|
||||
Reference in New Issue
Block a user