mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 18:56:55 +02:00
@@ -190,8 +190,8 @@ def fetch_version_number(major_version=None):
|
||||
|
||||
# Find the build artifacts
|
||||
build_client = connection.clients.get_build_client()
|
||||
get_builds_response = build_client.get_builds('certbot', definitions='3')
|
||||
for build in get_builds_response.value:
|
||||
builds = build_client.get_builds('certbot', definitions='3')
|
||||
for build in builds:
|
||||
version = build_client.get_build('certbot', build.id).source_branch.split('v')[1]
|
||||
if major_version is None or version.split('.')[0] == major_version:
|
||||
return version
|
||||
|
||||
Reference in New Issue
Block a user