summaryrefslogtreecommitdiff
path: root/cloudinit/net
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-20 14:54:12 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-20 14:54:12 -0400
commit51a4781e868627592cc95f4e5ee9e485afa6c1cf (patch)
tree1bf167f5f791e987d0991d5ddc1f4eaf29cb548d /cloudinit/net
parent776b0cfe847f531d8d5a235f52673c3da1f06064 (diff)
downloadvyos-cloud-init-51a4781e868627592cc95f4e5ee9e485afa6c1cf.tar.gz
vyos-cloud-init-51a4781e868627592cc95f4e5ee9e485afa6c1cf.zip
leave early if no interfaces to rename
Diffstat (limited to 'cloudinit/net')
-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()