From d1a951e4c64bfdfba78ac128fe88ece28bb00f38 Mon Sep 17 00:00:00 2001 From: Harm Weites Date: Wed, 8 Oct 2014 15:36:23 +0200 Subject: fix: Use continue to skip inside a loop. --- cloudinit/distros/freebsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/distros') diff --git a/cloudinit/distros/freebsd.py b/cloudinit/distros/freebsd.py index ee74cd2d..ee23fd20 100644 --- a/cloudinit/distros/freebsd.py +++ b/cloudinit/distros/freebsd.py @@ -124,7 +124,7 @@ class Distro(distros.Distro): m = re.match('^\w+', line) if m: if m.group(0).startswith('lo'): - next + continue # Just settle with the first non-lo adapter we find, since it's # rather unlikely there will be multiple nicdrivers involved. bsddev = m.group(0) -- cgit v1.2.3