summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/stages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index 211d2286..5756e74d 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -638,7 +638,8 @@ class Init(object):
except Exception as e:
LOG.warn("Failed to rename devices: %s", e)
- if not self.is_new_instance():
+ if (self.datasource is not NULL_DATA_SOURCE and
+ not self.is_new_instance()):
LOG.debug("not a new instance. network config is not applied.")
return