summaryrefslogtreecommitdiff
path: root/cloudinit/stages.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-09-20 12:45:00 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-09-20 12:45:00 +0000
commitf0ff194054da90b7b49620b5658342e52156d68e (patch)
treeff7e0dce2dc81f9bbf88765c6ab9eb17fcdef258 /cloudinit/stages.py
parentc3680475f9c97028d75a8f1bb58139ddd47d00ed (diff)
downloadcloud-init-git-f0ff194054da90b7b49620b5658342e52156d68e.tar.gz
stages: Fix bug causing datasource to have incorrect sys_cfg.
The Init object had a bug/odd side effect where when retrieving a distro object it would update the datasources's sys_cfg. That was probably intended to refresh the possibly stale config stored there. Unfortunately what it actually did limit the config there to the 'system_info' top level key where initially it had the whole config. LP: #1787459
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 ef5c6996..8a064124 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -88,7 +88,7 @@ class Init(object):
# from whatever it was to a new set...
if self.datasource is not NULL_DATA_SOURCE:
self.datasource.distro = self._distro
- self.datasource.sys_cfg = system_config
+ self.datasource.sys_cfg = self.cfg
return self._distro
@property