Skip to content

Commit

Permalink
Fix fetching all opentofu versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Dec 21, 2024
1 parent 7035490 commit 5cffbe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/src/opentofu/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def get_opentofu_versions() -> Iterable[Version]:
"""Return the currently available opentofu versions."""

response = github.get('https://api.github.com/repos/opentofu/opentofu/releases')
response = github.paged_get('https://api.github.com/repos/opentofu/opentofu/releases')

for release in response.json():
for release in response:
yield Version(release['tag_name'].lstrip('v'), 'OpenTofu')

0 comments on commit 5cffbe6

Please sign in to comment.