From e65604ca64e16c4ee5bf2467c4424954eddfc390 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 20 Aug 2012 21:46:40 -0400 Subject: remove duplicate printing of authorized keys to the console see LP: #1039303 for more information. Hopefully we'll get a good fix there. --- cloudinit/config/cc_ssh_authkey_fingerprints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cloudinit/config/cc_ssh_authkey_fingerprints.py') diff --git a/cloudinit/config/cc_ssh_authkey_fingerprints.py b/cloudinit/config/cc_ssh_authkey_fingerprints.py index 087cc15e..ebd9d6c8 100644 --- a/cloudinit/config/cc_ssh_authkey_fingerprints.py +++ b/cloudinit/config/cc_ssh_authkey_fingerprints.py @@ -77,12 +77,13 @@ def _pprint_key_entries(user, key_fn, key_entries, hash_meth='md5', prefix='ci-i authtbl_lines = authtbl_s.splitlines() max_len = len(max(authtbl_lines, key=len)) lines = [ - util.center("Authorized keys fingerprints from %s for user %s" % + util.center("Authorized keys from %s for user %s" % (key_fn, user), "+", max_len), ] lines.extend(authtbl_lines) for line in lines: - util.multi_log(text="%s%s\n" % (prefix, line)) + util.multi_log(text="%s%s\n" % (prefix, line), + stderr=False, console=True) def handle(name, cfg, cloud, log, _args): -- cgit v1.2.3