Open
Description
Ran into this bug when trying to use password authentication. Seems to just be a small typo:
dst = reggie.NewClient(
dst_endpoint,
reggie.WithUsernamePassword(
"AWS",
password
),
)
req = dst.NewRequest(
"POST", "/v2/<name>/uploads/",
reggie.WithName(dst_name),
)
resp = src.Do(req)
print(resp.headers)
Traceback (most recent call last):
resp = src.Do(req)
File "/home/tristanr/venvs/torchx/lib/python3.9/site-packages/opencontainers/distribution/reggie/client.py", line 168, in Do
response = self.retryRequestWithAuth(req, response)
File "/home/tristanr/venvs/torchx/lib/python3.9/site-packages/opencontainers/distribution/reggie/client.py", line 199, in retryRequestWithAuth
elif h.Scope:
AttributeError: 'authHeader' object has no attribute 'Scope'
Think it should be scope
https://github.com/vsoch/oci-python/blob/master/opencontainers/distribution/reggie/client.py#L231
Metadata
Metadata
Assignees
Labels
No labels