Skip to content

Commit

Permalink
fix: add missing write flag to taf targets sign
Browse files Browse the repository at this point in the history
Signing was not working without adding this flag
  • Loading branch information
n-dusan committed Jul 26, 2023
1 parent 174b711 commit 745cf25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ and this project adheres to [Semantic Versioning][semver].
### Changed

### Fixed
- Add missing `write` flag to `taf targets sign` ([329])

[329]: https://github.com/openlawlibrary/taf/pull/329
## [0.26.0] - 07/12/2023

### Added
Expand Down
1 change: 1 addition & 0 deletions taf/api/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def register_target_files(
removed_targets_data,
keystore,
scheme=scheme,
write=write,
)

if write:
Expand Down
2 changes: 1 addition & 1 deletion taf/tools/targets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def sign(path, keystore, keys_description, scheme):
try:
register_target_files(path, keystore=keystore,
roles_key_infos=keys_description,
scheme=scheme)
scheme=scheme, write=True)
except TAFError as e:
click.echo()
click.echo(str(e))
Expand Down

0 comments on commit 745cf25

Please sign in to comment.