summaryrefslogtreecommitdiff
path: root/cloudinit/stages.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-07 14:34:57 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-07 14:34:57 -0400
commitdbeff5c80281ee1c236583d523feb323c7518c19 (patch)
treea6c57399ebf1afbdcd483f2ce4d4399c133c1dbe /cloudinit/stages.py
parent2268993b5cb770babb995efd5bb799517528b8a4 (diff)
downloadvyos-cloud-init-dbeff5c80281ee1c236583d523feb323c7518c19.tar.gz
vyos-cloud-init-dbeff5c80281ee1c236583d523feb323c7518c19.zip
system config of networking should override datasource provided
while datasource provided networking is more dynamic in most cases, preference should still be given to networking configuration provided in the system. This is because the user of the image should be ultimately in control of the networking configuration if they so choose. LP: #1590104
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r--cloudinit/stages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index 5756e74d..4ba95318 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -618,7 +618,7 @@ class Init(object):
dscfg = ('ds', self.datasource.network_config)
sys_cfg = ('system_cfg', self.cfg.get('network'))
- for loc, ncfg in (cmdline_cfg, dscfg, sys_cfg):
+ for loc, ncfg in (cmdline_cfg, sys_cfg, dscfg):
if net.is_disabled_cfg(ncfg):
LOG.debug("network config disabled by %s", loc)
return (None, loc)