From b910baf1d050fcc69f4e50adb2783fd33567635c Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Sun, 1 Oct 2017 11:35:17 +0300 Subject: [PATCH] Stupid, stupid casting bug. --- chaos_monkey/exploit/elasticgroovy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chaos_monkey/exploit/elasticgroovy.py b/chaos_monkey/exploit/elasticgroovy.py index ed110e999..5dce8208e 100644 --- a/chaos_monkey/exploit/elasticgroovy.py +++ b/chaos_monkey/exploit/elasticgroovy.py @@ -53,6 +53,9 @@ class ElasticGroovyExploiter(HostExploiter): LOG.info("Host: %s doesn't have ES open" % host.ip_addr) return False major, minor, build = host.services[ES_SERVICE]['version'].split('.') + major = int(major) + minor = int(minor) + build = int(build) if major > 1: return False if major == 1 and minor > 4: