Skip to content

Commit 1b1fc7d

Browse files
committed
Make payload arg in tuf cli "lazy"
Other than the regular click File, the LazyFile also has the "name" attribute, when passing stdin via "-". We print the name on success. Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
1 parent f12b5f6 commit 1b1fc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

warehouse/cli/tuf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def tuf():
2424

2525

2626
@tuf.command()
27-
@click.argument("payload", type=click.File("rb"), required=True)
27+
@click.argument("payload", type=click.File("rb", lazy=True), required=True)
2828
@click.option("--api-server", required=True)
2929
def bootstrap(payload, api_server):
3030
"""Use payload file to bootstrap RSTUF server."""

0 commit comments

Comments
 (0)