From f0ff194054da90b7b49620b5658342e52156d68e Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 20 Sep 2018 12:45:00 +0000 Subject: 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 --- cloudinit/stages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') 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 -- cgit v1.2.3