Skip to content

Commit

Permalink
Package version is optional and should be checked
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyDevloo committed Sep 14, 2018
1 parent a0b3626 commit 80814ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/servicefactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_service_update_versions(cls, client, service_name, binary_versions, pack
continue
pkg_name = version.strip().split('=')[0]
running_version = version.strip().split('=')[1]
if (package_name or pkg_name == package_name) and running_version:
if (package_name is None or pkg_name == package_name) and running_version:
if LooseVersion(running_version) < binary_versions[pkg_name]:
return {'installed': running_version,
'candidate': str(binary_versions[pkg_name])}
Expand Down

0 comments on commit 80814ae

Please sign in to comment.