Skip to content

Commit

Permalink
Avoid providing fingerprint/size for resources with -1 revision
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Oct 13, 2023
1 parent b056235 commit 6ec5c3e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions juju/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,13 +760,11 @@ async def refresh(
res_name = resource.get('Name', resource.get('name'))
request_data.append(client.CharmResource(
description=resource.get('Description', resource.get('description')),
fingerprint=resource.get('Fingerprint', resource.get('fingerprint', [])),
name=res_name,
path=_arg_res_filenames.get(res_name,
resource.get('Path',
resource.get('filename', ''))),
revision=_arg_res_revisions.get(res_name, -1),
size=resource.get('Size', resource.get('size', 0)),
type_=resource.get('Type', resource.get('type')),
origin='store',
))
Expand Down

0 comments on commit 6ec5c3e

Please sign in to comment.