From 61ff2ed740e87c0551d2a060efd01deac5702bd7 Mon Sep 17 00:00:00 2001 From: acepace Date: Tue, 7 Jun 2016 17:18:51 +0300 Subject: [PATCH] made fixed range actually load from configuration... --- chaos_monkey/network/network_scanner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chaos_monkey/network/network_scanner.py b/chaos_monkey/network/network_scanner.py index bef094429..20c264cc6 100644 --- a/chaos_monkey/network/network_scanner.py +++ b/chaos_monkey/network/network_scanner.py @@ -27,7 +27,8 @@ class NetworkScanner(object): LOG.info("Found local IP addresses of the machine: %r", self._ip_addresses) # for fixed range, only scan once. if WormConfiguration.range_class is FixedRange: - self._ranges = [WormConfiguration.range_class('0.0.0.0')] + self._ranges = [WormConfiguration.range_class(ip_address) + for ip_address in WormConfiguration.range_fixed] else: self._ranges = [WormConfiguration.range_class(ip_address) for ip_address in self._ip_addresses]