From 9dc02381c1f2c23a656d45390d12890318d574f4 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 28 Oct 2013 10:20:05 -0400 Subject: fixed misc. unit tests --- src/lib/Bcfg2/Server/Plugins/SSHbase.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/Bcfg2/Server/Plugins/SSHbase.py') diff --git a/src/lib/Bcfg2/Server/Plugins/SSHbase.py b/src/lib/Bcfg2/Server/Plugins/SSHbase.py index 1bb4ec9f0..a3fbc04f3 100644 --- a/src/lib/Bcfg2/Server/Plugins/SSHbase.py +++ b/src/lib/Bcfg2/Server/Plugins/SSHbase.py @@ -6,6 +6,7 @@ import sys import socket import shutil import tempfile +import lxml.etree import Bcfg2.Options import Bcfg2.Server.Plugin from itertools import chain @@ -409,12 +410,9 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin, self.entries[entry.get('name')].bind_entry(entry, metadata) is_bound = True except Bcfg2.Server.Plugin.PluginExecutionError: - import lxml.etree - - print("failed to bind %s: %s") % ( + print("Failed to bind %s: %s") % ( lxml.etree.tostring(entry), sys.exc_info()[1]) - pass def GenerateHostKeyPair(self, client, filename): """Generate new host key pair for client.""" -- cgit v1.2.3-1-g7c22