diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-20 23:40:00 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-20 23:40:00 -0700 |
commit | 95e0fa29af3656c1011c41ab0f35dc4e9317269c (patch) | |
tree | dd36e2a58478639733d114f452bf36f0af780803 /cloudinit/config | |
parent | d0ff82b71e315d49f49cbbd8e6a7740036973a4a (diff) | |
download | vyos-cloud-init-95e0fa29af3656c1011c41ab0f35dc4e9317269c.tar.gz vyos-cloud-init-95e0fa29af3656c1011c41ab0f35dc4e9317269c.zip |
1. Add an importer function that will search for a given module in a set of search module 'prefixes'
that also has a potential set of required attributes.
2. Use this new importer to find the distro class, the userdata handler modules, the config modules
and the datasource modules, if none can be found error out accordingly.
Diffstat (limited to 'cloudinit/config')
-rw-r--r-- | cloudinit/config/__init__.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cloudinit/config/__init__.py b/cloudinit/config/__init__.py index 02e32462..ab13045f 100644 --- a/cloudinit/config/__init__.py +++ b/cloudinit/config/__init__.py @@ -51,10 +51,6 @@ def fixup_module(mod, def_freq=PER_INSTANCE): freq = mod.frequency if freq and freq not in FREQUENCIES: LOG.warn("Module %s has an unknown frequency %s", mod, freq) - if not hasattr(mod, 'handle'): - def empty_handle(_name, _cfg, _cloud, _log, _args): - pass - setattr(mod, 'handle', empty_handle) if not hasattr(mod, 'distros'): setattr(mod, 'distros', None) return mod |