summaryrefslogtreecommitdiff
diff options
authorJeff Lane <jeffrey.lane@canonical.com>2017-02-24 16:31:25 -0500
committerSylvain Pineau <sylvain.pineau@canonical.com>2017-04-03 09:39:22 +0200
commit41577fd1c96a5e76862e3bdfe1f504507e862312 (patch)
tree06725db0f513970da9a05566a30227ed435e2348
parentcbb6c97026767e2a5479c1148fcf62ae4e41e7fd (diff)
bin/network: don't remove targets that are not in the right subnet, just warn and try them anyway. LP: #1667781
-rwxr-xr-xbin/network7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/network b/bin/network
index 8291674..552c74c 100755
--- a/bin/network
+++ b/bin/network
@@ -454,10 +454,9 @@ def make_target_list(iface, test_targets, log_warnings):
target = ipaddress.IPv4Address(test_target_ip)
if (target < first_addr) or (target > last_addr):
if log_warnings:
- logging.warning("test server {} ({}) is NOT ".
- format(test_target, target))
- logging.warning("within {}; skipping".format(net))
- return_list.remove(test_target)
+ logging.warning("Test server {} ({}) is NOT within {}".
+ format(test_target, target, net))
+ logging.warning("This may cause test issues")
except ValueError:
if log_warnings:
logging.warning("Invalid address: {}; skipping".