Commit 83ca51fe authored by Morten Knutsen's avatar Morten Knutsen

Switch order of loops in get_dynamic_hosts. Makes it more logical.

parent 828c8d16
...@@ -89,8 +89,8 @@ class Generator(object): ...@@ -89,8 +89,8 @@ class Generator(object):
def get_dynamic_hosts(self, hosts): def get_dynamic_hosts(self, hosts):
dyn_hosts = [] dyn_hosts = []
for r in self.ranges: for host in hosts:
for host in hosts: for r in self.ranges:
if parse_ip(host) >= r[0] and parse_ip(host) <= r[1]: if parse_ip(host) >= r[0] and parse_ip(host) <= r[1]:
dyn_hosts.append(host) dyn_hosts.append(host)
return dyn_hosts return dyn_hosts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment