Skip to content

Commit

Permalink
Merge pull request #2073 from conda-forge/beckermr-patch-2
Browse files Browse the repository at this point in the history
fix: bug in new expiration cli
  • Loading branch information
beckermr authored Oct 1, 2024
2 parents 028c5a8 + 5d1dec2 commit 3678746
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
12 changes: 6 additions & 6 deletions conda_smithy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -962,19 +966,15 @@ 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(
owner,
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!")
Expand Down
23 changes: 23 additions & 0 deletions news/bug-expiry.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Fixed a bug in processing CLI arguments for token expiration times. (#2073)

**Security:**

* <news item>

0 comments on commit 3678746

Please sign in to comment.