mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +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):
|
||||
if user is None:
|
||||
user = "admin"
|
||||
if pwuserpd is None:
|
||||
if userp is None:
|
||||
userp = "Harbor12345"
|
||||
kwargs.setdefault('headers', kwargs.get('headers', {}))
|
||||
kwargs['headers']['Accept'] = 'application/json'
|
||||
|
Loading…
Reference in New Issue
Block a user