mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Fix dangerous default args. (#29839)
This commit is contained in:
parent
5caa47feb9
commit
68aeaa58a8
50 changed files with 253 additions and 87 deletions
|
@ -322,7 +322,9 @@ class Connection(ConnectionBase):
|
|||
self.shell_id = None
|
||||
self._connect()
|
||||
|
||||
def _create_raw_wrapper_payload(self, cmd, environment=dict()):
|
||||
def _create_raw_wrapper_payload(self, cmd, environment=None):
|
||||
environment = {} if environment is None else environment
|
||||
|
||||
payload = {
|
||||
'module_entry': to_text(base64.b64encode(to_bytes(cmd))),
|
||||
'powershell_modules': {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue