diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-22 12:36:01 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-22 12:36:01 -0700 |
commit | e69068d4b431ad237ff7e57795759fe8025a4bd7 (patch) | |
tree | 0003c35b9ce2aca822c73bb1baf419d48fab9207 /cloudinit/stages.py | |
parent | 548cd1dabae48a507ea1a6967a527aa8fe400873 (diff) | |
download | vyos-cloud-init-e69068d4b431ad237ff7e57795759fe8025a4bd7.tar.gz vyos-cloud-init-e69068d4b431ad237ff7e57795759fe8025a4bd7.zip |
Remove support for older ec2 configobj merging.
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r-- | cloudinit/stages.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py index 595f7aea..cfe1c071 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -26,9 +26,6 @@ import copy import os import sys -from configobj import ConfigObj - -from cloudinit.settings import (OLD_CLOUD_CONFIG) from cloudinit.settings import (PER_INSTANCE, FREQUENCIES) from cloudinit import handlers @@ -64,11 +61,6 @@ class Init(object): # Created only when a fetch occurs self.datasource = None - def _read_cfg_old(self): - # Support reading the old ConfigObj format file - old_cfg = ConfigObj(OLD_CLOUD_CONFIG) - return dict(old_cfg) - @property def distro(self): if not self._distro: @@ -165,13 +157,12 @@ class Init(object): except: util.logexc(LOG, ("Failed loading of additional" " configuration from %s"), fn) - # Now read in the built-in + base + old + # Now read in the built-in + base try: conf = util.get_base_cfg(builtin=util.get_builtin_cfg()) except Exception: conf = util.get_builtin_cfg() i_cfgs.append(conf) - i_cfgs.append(self._read_cfg_old()) return util.mergemanydict(i_cfgs) def _restore_from_cache(self): |