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
|
@ -208,7 +208,9 @@ class NamedResource(object):
|
|||
|
||||
class OC(object):
|
||||
def __init__(self, module, token, host, port,
|
||||
apis=['api', 'oapi']):
|
||||
apis=None):
|
||||
apis = ['api', 'oapi'] if apis is None else apis
|
||||
|
||||
self.apis = apis
|
||||
self.version = 'v1'
|
||||
self.token = token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue