From b5a9c99c74121135506a9de43bd9f4389e58fe9a Mon Sep 17 00:00:00 2001 From: Ole Herman Schumacher Elgesem Date: Tue, 10 Dec 2024 17:19:35 +0100 Subject: [PATCH] Fixed issue with unspecified (None) version in download and list Signed-off-by: Ole Herman Schumacher Elgesem --- cf_remote/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf_remote/commands.py b/cf_remote/commands.py index 60e76fc..3d3f90b 100644 --- a/cf_remote/commands.py +++ b/cf_remote/commands.py @@ -281,7 +281,7 @@ def _iterate_over_packages(tags=None, version=None, edition=None, download=False releases = Releases(edition) print("Available releases: {}".format(releases)) - if version not in [rel.version for rel in releases.releases] : + if version and version not in [rel.version for rel in releases.releases]: user_error("CFEngine version '%s' doesn't exist (yet)." % version) release = releases.default