From 1e354387f98b0767561507c96cdbf02f4a3f52af Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 21 Oct 2011 14:48:47 +0200 Subject: [PATCH] add missing import Signed-off-by: Steven Armstrong --- lib/cdist/test/exec/remote.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cdist/test/exec/remote.py b/lib/cdist/test/exec/remote.py index 191cbd43..92b68d06 100644 --- a/lib/cdist/test/exec/remote.py +++ b/lib/cdist/test/exec/remote.py @@ -26,6 +26,7 @@ import string import random import cdist +from cdist import test from cdist.exec import remote @@ -33,12 +34,12 @@ class RemoteTestCase(test.CdistTestCase): def setUp(self): self.temp_dir = self.mkdtemp() - target_host = 'localhost' + self.target_host = 'localhost' self.base_path = self.temp_dir user = getpass.getuser() remote_exec = "ssh -o User=%s -q" % user remote_copy = "scp -o User=%s -q" % user - self.remote = remote.Remote(target_host, self.base_path, remote_exec, remote_copy) + self.remote = remote.Remote(self.target_host, self.base_path, remote_exec, remote_copy) def tearDown(self): shutil.rmtree(self.temp_dir)