modify a code error by copy mistake (#6736)

Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
danfengliu 2019-01-14 11:02:11 +08:00 committed by GitHub
parent a1d4bfd332
commit de30438d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'