mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Merge pull request #6827 from ryanpetrello/devel
fix a bug in cluster node version comparison
This commit is contained in:
@@ -189,7 +189,7 @@ def cluster_node_heartbeat(self):
|
|||||||
for other_inst in recent_inst:
|
for other_inst in recent_inst:
|
||||||
if other_inst.version == "":
|
if other_inst.version == "":
|
||||||
continue
|
continue
|
||||||
if Version(other_inst.version) > Version(tower_application_version):
|
if Version(other_inst.version.split('-', 1)[0]) > Version(tower_application_version):
|
||||||
logger.error("Host {} reports Tower version {}, but this node {} is at {}, shutting down".format(other_inst.hostname,
|
logger.error("Host {} reports Tower version {}, but this node {} is at {}, shutting down".format(other_inst.hostname,
|
||||||
other_inst.version,
|
other_inst.version,
|
||||||
inst.hostname,
|
inst.hostname,
|
||||||
|
|||||||
Reference in New Issue
Block a user