summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_landscape.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-21 20:28:21 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-21 20:28:21 -0700
commit23cf7e35bf9aa1cffc9d1bb2f20d362b57110723 (patch)
tree70575a70f1c3f9431ad00ee5b7b886f01ef1b7ac /cloudinit/config/cc_landscape.py
parenta588b9b966e51c9b9778b0082c8c5b6ab10f2677 (diff)
downloadvyos-cloud-init-23cf7e35bf9aa1cffc9d1bb2f20d362b57110723.tar.gz
vyos-cloud-init-23cf7e35bf9aa1cffc9d1bb2f20d362b57110723.zip
Use RuntimeError subclass instead of top level Exception
Diffstat (limited to 'cloudinit/config/cc_landscape.py')
-rw-r--r--cloudinit/config/cc_landscape.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/config/cc_landscape.py b/cloudinit/config/cc_landscape.py
index d45c9203..99a958b0 100644
--- a/cloudinit/config/cc_landscape.py
+++ b/cloudinit/config/cc_landscape.py
@@ -61,10 +61,10 @@ def handle(name, cfg, cloud, log, _args):
ls_cloudcfg = cfg.get("landscape", {})
- if not isinstance(ls_cloudcfg, dict):
- raise Exception(("'landscape' key existed in config,"
- " but not a dictionary type,"
- " is a %s instead"), util.obj_name(ls_cloudcfg))
+ if not isinstance(ls_cloudcfg, (dict)):
+ raise RuntimeError(("'landscape' key existed in config,"
+ " but not a dictionary type,"
+ " is a %s instead"), util.obj_name(ls_cloudcfg))
merge_data = [
LSC_BUILTIN_CFG,