mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -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
|
@ -121,7 +121,9 @@ class netscaler(object):
|
|||
def __init__(self, module):
|
||||
self.module = module
|
||||
|
||||
def http_request(self, api_endpoint, data_json={}):
|
||||
def http_request(self, api_endpoint, data_json=None):
|
||||
data_josn = {} if data_json is None else data_json
|
||||
|
||||
request_url = self._nsc_protocol + '://' + self._nsc_host + self._nitro_base_url + api_endpoint
|
||||
|
||||
data_json = urlencode(data_json)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue