mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 21:54:13 +01:00
modify a code error by copy mistake (#6736)
Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
parent
a1d4bfd332
commit
de30438d01
@ -115,7 +115,7 @@ class HarborAPI:
|
|||||||
def request(url, method, user = None, userp = None, **kwargs):
|
def request(url, method, user = None, userp = None, **kwargs):
|
||||||
if user is None:
|
if user is None:
|
||||||
user = "admin"
|
user = "admin"
|
||||||
if pwuserpd is None:
|
if userp is None:
|
||||||
userp = "Harbor12345"
|
userp = "Harbor12345"
|
||||||
kwargs.setdefault('headers', kwargs.get('headers', {}))
|
kwargs.setdefault('headers', kwargs.get('headers', {}))
|
||||||
kwargs['headers']['Accept'] = 'application/json'
|
kwargs['headers']['Accept'] = 'application/json'
|
||||||
|
Loading…
Reference in New Issue
Block a user