From 2d6107002357af985d7695082e98caea99ae4a31 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 13 Feb 2012 10:47:40 +0100 Subject: [PATCH] remove old IllegalRequirementError exception Signed-off-by: Nico Schottelius --- lib/cdist/emulator.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/cdist/emulator.py b/lib/cdist/emulator.py index 5e95e31c..8daa61fb 100644 --- a/lib/cdist/emulator.py +++ b/lib/cdist/emulator.py @@ -26,15 +26,6 @@ import os import cdist from cdist import core - -class IllegalRequirementError(cdist.Error): - def __init__(self, requirement, message=None): - self.requirement = requirement - self.message = message or 'Illegal requirement' - - def __str__(self): - return '%s: %s' % (self.message, self.requirement) - class Emulator(object): def __init__(self, argv): self.argv = argv @@ -155,6 +146,7 @@ class Emulator(object): # Raises an error, if object cannot be created self.cdist_object.object_from_name(requirement) + self.log.debug("Recording requirement: " + requirement) self.cdist_object.requirements.append(requirement)