From de84f3cf4a7cc0a077091f84da6385827873fa3e Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 30 Jun 2017 11:28:04 -0400 Subject: [PATCH] fix a bug in cluster node version comparison --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index f4dd816042..68172a3085 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -189,7 +189,7 @@ def cluster_node_heartbeat(self): for other_inst in recent_inst: if other_inst.version == "": 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, other_inst.version, inst.hostname,