Skip to content

Commit

Permalink
Merge pull request #97 from olehermanse/none
Browse files Browse the repository at this point in the history
Fixed issue with unspecified (None) version in download and list
  • Loading branch information
olehermanse authored Dec 10, 2024
2 parents 834f84b + b5a9c99 commit 1a58fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf_remote/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a58fe2

Please sign in to comment.