Unverified Commit de30438d authored by danfengliu's avatar danfengliu Committed by GitHub
Browse files

modify a code error by copy mistake (#6736)

Signed-off-by: default avatardanfengliu <danfengl@vmware.com>
parent a1d4bfd3
......@@ -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'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment