Skip to content

Commit

Permalink
Fix module has no attribute UpdateProgress
Browse files Browse the repository at this point in the history
  • Loading branch information
MKLeb authored and Megan Wilhite committed Aug 31, 2023
1 parent f55379f commit ad718dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ptscripts import Context, command_group

import tools.utils
import tools.utils.repo

try:
import boto3
Expand Down Expand Up @@ -111,7 +112,7 @@ def upload_artifacts(ctx: Context, salt_version: str, artifacts_path: pathlib.Pa
str(fpath),
tools.utils.STAGING_BUCKET_NAME,
upload_path,
Callback=tools.utils.UpdateProgress(progress, task),
Callback=tools.utils.repo.UpdateProgress(progress, task),
)
except KeyboardInterrupt:
pass
Expand Down Expand Up @@ -180,7 +181,7 @@ def download_onedir_artifact(
Bucket=tools.utils.STAGING_BUCKET_NAME,
Key=remote_path,
Fileobj=wfh,
Callback=tools.utils.UpdateProgress(progress, task),
Callback=tools.utils.repo.UpdateProgress(progress, task),
)
except ClientError as exc:
if "Error" not in exc.response:
Expand Down

0 comments on commit ad718dc

Please sign in to comment.