forked from pool/cloud-init
14 lines
457 B
Diff
14 lines
457 B
Diff
|
--- cloudinit/stages.py.orig
|
||
|
+++ cloudinit/stages.py
|
||
|
@@ -691,7 +691,9 @@ class Modules(object):
|
||
|
module_list = []
|
||
|
if name not in self.cfg:
|
||
|
return module_list
|
||
|
- cfg_mods = self.cfg[name]
|
||
|
+ cfg_mods = self.cfg.get(name)
|
||
|
+ if not cfg_mods:
|
||
|
+ return module_list
|
||
|
# Create 'module_list', an array of hashes
|
||
|
# Where hash['mod'] = module name
|
||
|
# hash['freq'] = frequency
|