Skip to content

Commit

Permalink
fix retries option for hsload
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Mar 29, 2024
1 parent 5984802 commit 2871080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion h5pyd/_apps/hsload.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def main():
"endpoint": cfg["hs_endpoint"],
"bucket": cfg["hs_bucket"],
"mode": mode,
"retries": cfg["retries"],
"retries": int(cfg["retries"]),
}

fout = h5pyd.File(tgt, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion h5pyd/_hl/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def __init__(
# remove the trailing slash on endpoint if it exists
if endpoint.endswith('/'):
endpoint = endpoint.strip('/')

if username is None:
if "H5SERV_USERNAME" in os.environ:
username = os.environ["H5SERV_USERNAME"]
Expand Down

0 comments on commit 2871080

Please sign in to comment.