summaryrefslogtreecommitdiff
path: root/cloudinit/net/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-21 11:23:52 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-21 11:23:52 -0400
commitfd816e7e1f9c48d7ab89958f6eee7677fb310932 (patch)
tree7544ffdc0d80931b230a8fd9e58350698b8bef92 /cloudinit/net/__init__.py
parent575c7030e4ff1bd68ca7229f10c482af00620711 (diff)
parente6b594bf2bf4cd40bbfbe9581c2b62f3b77e9123 (diff)
downloadvyos-cloud-init-fd816e7e1f9c48d7ab89958f6eee7677fb310932.tar.gz
vyos-cloud-init-fd816e7e1f9c48d7ab89958f6eee7677fb310932.zip
merge with trunk
Diffstat (limited to 'cloudinit/net/__init__.py')
-rw-r--r--cloudinit/net/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index 6959ad34..63e54f91 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -237,6 +237,11 @@ def _get_current_rename_info(check_downable=True):
def _rename_interfaces(renames, strict_present=True, strict_busy=True,
current_info=None):
+
+ if not len(renames):
+ LOG.debug("no interfaces to rename")
+ return
+
if current_info is None:
current_info = _get_current_rename_info()