Skip to content

Commit f86e956

Browse files
committed
Avoid providing fingerprint/size for resources with -1 revision
1 parent 06f4312 commit f86e956

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

juju/application.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,13 +778,11 @@ async def refresh(
778778
res_name = resource.get('Name', resource.get('name'))
779779
request_data.append(client.CharmResource(
780780
description=resource.get('Description', resource.get('description')),
781-
fingerprint=resource.get('Fingerprint', resource.get('fingerprint', [])),
782781
name=res_name,
783782
path=_arg_res_filenames.get(res_name,
784783
resource.get('Path',
785784
resource.get('filename', ''))),
786785
revision=_arg_res_revisions.get(res_name, -1),
787-
size=resource.get('Size', resource.get('size', 0)),
788786
type_=resource.get('Type', resource.get('type')),
789787
origin='store',
790788
))

0 commit comments

Comments
 (0)