Skip to content

Commit

Permalink
Merge pull request #462 from RedHatQE/workaround_hawkular_test_failures
Browse files Browse the repository at this point in the history
Workaround hawkular test failures
  • Loading branch information
bsquizz authored Feb 28, 2023
2 parents f82fd2f + 4be20c3 commit 8dbf904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrapanapi/systems/hawkular.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ def _get_inventory(self, hostname, port, protocol):
return cls(**kwargs)

def _metrics_older(self, metrics_version):
return version.parse(
self.metric._get("status")
['Implementation-Version']) >= version.parse(metrics_version)
metrics_version = metrics_version.rstrip('.Final')
status_version = self.metric._get("status")['Implementation-Version'].rstrip('.Final')
return version.parse(status_version) > version.parse(metrics_version)

def info(self):
raise NotImplementedError('info not implemented.')
Expand Down

0 comments on commit 8dbf904

Please sign in to comment.