Skip to content

Commit

Permalink
Merge pull request #800 from freyes/os-release-comparison-antelope
Browse files Browse the repository at this point in the history
Fix openstack release comparison wrap (#768)
  • Loading branch information
ajkavanagh authored Sep 5, 2023
2 parents 95d7bcc + 7419c8c commit 9f1c317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charmhelpers/contrib/openstack/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def os_requires_version(ostack_release, pkg):
def wrap(f):
@wraps(f)
def wrapped_f(*args):
if os_release(pkg) < ostack_release:
if CompareOpenStackReleases(os_release(pkg)) < ostack_release:
raise Exception("This hook is not supported on releases"
" before %s" % ostack_release)
f(*args)
Expand Down

0 comments on commit 9f1c317

Please sign in to comment.