Skip to content

Commit

Permalink
fix: correct token creation CLI to ensure it works with default expiry (
Browse files Browse the repository at this point in the history
  • Loading branch information
corban-beaird authored Oct 18, 2024
1 parent b155332 commit b70a622
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions harness/determined/cli/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def create_token(args: argparse.Namespace) -> None:
raise errors.CliError(f"User '{username}' not found or does not have an ID")

# convert days into hours Go duration format
expiration_in_hours = None
if args.expiration_days:
expiration_in_hours = str(24 * args.expiration_days) + "h"

Expand Down

0 comments on commit b70a622

Please sign in to comment.