diff --git a/conda_smithy/cli.py b/conda_smithy/cli.py index d590ad531..c9a33fcd8 100644 --- a/conda_smithy/cli.py +++ b/conda_smithy/cli.py @@ -952,6 +952,10 @@ def __call__(self, args): unique_token_per_provider=args.unique_token_per_provider, ) + if args.existing_tokens_time_to_expiration is not None: + expiry = int(args.existing_tokens_time_to_expiration) + else: + expiry = None # then if that works do the github repo if args.unique_token_per_provider: for ci_pretty in self.ci_names: @@ -962,9 +966,7 @@ def __call__(self, args): repo, token_repo, provider=ci, - existing_tokens_time_to_expiration=int( - args.existing_tokens_time_to_expiration - ), + existing_tokens_time_to_expiration=expiry, ) else: register_feedstock_token( @@ -972,9 +974,7 @@ def __call__(self, args): repo, token_repo, provider=None, - existing_tokens_time_to_expiration=int( - args.existing_tokens_time_to_expiration - ), + existing_tokens_time_to_expiration=expiry, ) print("Successfully registered the feedstock token!") diff --git a/news/bug-expiry.rst b/news/bug-expiry.rst new file mode 100644 index 000000000..69065b509 --- /dev/null +++ b/news/bug-expiry.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Fixed a bug in processing CLI arguments for token expiration times. (#2073) + +**Security:** + +*