From 64bb1741aa0fb201b5e0f683f607f05c534a7038 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 15 Feb 2012 17:05:22 +0100 Subject: [PATCH] cleanup local Signed-off-by: Nico Schottelius --- lib/cdist/exec/local.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/cdist/exec/local.py b/lib/cdist/exec/local.py index 7fb63429..d3c6a0ce 100644 --- a/lib/cdist/exec/local.py +++ b/lib/cdist/exec/local.py @@ -32,18 +32,6 @@ import logging import cdist from cdist import core - -class LocalScriptError(cdist.Error): - def __init__(self, script, command, script_content): - self.script = script - self.command = command - self.script_content = script_content - - def __str__(self): - plain_command = " ".join(self.command) - return "Local script execution failed: %s" % plain_command - - class Local(object): """Execute commands locally. @@ -131,4 +119,4 @@ class Local(object): try: os.symlink(src, dst) except OSError as e: - raise cdist.Error("Linking emulator from " + src + " to " + dst + " failed: " + e.__str__()) + raise cdist.Error("Linking emulator from %s to %s failed: %s" % (src, dst, e.__str__()))