diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-10-28 10:20:05 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-10-28 10:20:05 -0400 |
commit | 9dc02381c1f2c23a656d45390d12890318d574f4 (patch) | |
tree | 9472e9ffd805e297444e024b45fbc0261c3720df /src/lib/Bcfg2/Server/Plugins/SSHbase.py | |
parent | 56ed0fffa88e84dc6845202d58e91bb90641b1e2 (diff) | |
download | bcfg2-9dc02381c1f2c23a656d45390d12890318d574f4.tar.gz bcfg2-9dc02381c1f2c23a656d45390d12890318d574f4.tar.bz2 bcfg2-9dc02381c1f2c23a656d45390d12890318d574f4.zip |
fixed misc. unit tests
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/SSHbase.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/SSHbase.py | 6 |
1 files changed, 2 insertions, 4 deletions
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.""" |