From e9a0aa186328c034af0ba0ec253d666657c0d859 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Tue, 18 Oct 2011 13:20:14 +0200 Subject: [PATCH] fail if requirements type does not exist Signed-off-by: Steven Armstrong --- lib/cdist/emulator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cdist/emulator.py b/lib/cdist/emulator.py index 103ea8c0..b5682342 100644 --- a/lib/cdist/emulator.py +++ b/lib/cdist/emulator.py @@ -158,6 +158,9 @@ class Emulator(object): requirement_type_name = requirement_parts[0] requirement_object_id = requirement_parts[1] + # Instantiate type which fails if type does not exist + requirement_type = core.Type(self.type_base_path, requirement_type_name) + # FIXME: Add support for omitted object id == singleton #if len(requirement_parts) == 1: #except IndexError: