diff options
author | Ben Howard <ben.howard@canonical.com> | 2013-08-23 09:10:30 -0600 |
---|---|---|
committer | Ben Howard <ben.howard@canonical.com> | 2013-08-23 09:10:30 -0600 |
commit | 0a667454289a788a6f406e66d78a34c7ec914daa (patch) | |
tree | 9d33c4197c8d51f905c58a7de3a44b4e82437a49 /cloudinit/sources | |
parent | 89d58c94d59c62dddea3f77b7a805c1afa2ca955 (diff) | |
download | vyos-cloud-init-0a667454289a788a6f406e66d78a34c7ec914daa.tar.gz vyos-cloud-init-0a667454289a788a6f406e66d78a34c7ec914daa.zip |
Fixed some typos. Change decode_base64 from sys_cfg to ds_cfg
Diffstat (limited to 'cloudinit/sources')
-rw-r--r-- | cloudinit/sources/DataSourceSmartOS.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py index 1cf9e4f0..45f03a7e 100644 --- a/cloudinit/sources/DataSourceSmartOS.py +++ b/cloudinit/sources/DataSourceSmartOS.py @@ -62,9 +62,12 @@ class DataSourceSmartOS(sources.DataSource): self.is_smartdc = None self.base_64_encoded = [] self.seed = self.sys_cfg.get("serial_device", DEF_TTY_LOC) - self.all_base64 = self.sys_cfg.get("decode_base64", False) self.seed_timeout = self.sys_cfg.get("serial_timeout", DEF_TTY_TIMEOUT) + self.all_base64 = False + if 'decode_base64' in self.ds_cfg: + self.all_base64 = self.ds_cfg['decode_base64'] + self.smartos_no_base64 = SMARTOS_NO_BASE64 if 'no_base64_decode' in self.ds_cfg: self.smartos_no_base64 = self.ds_cfg['no_base64_decode'] |