summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authordermotbradley <dermot_bradley@yahoo.com>2021-11-30 20:08:42 +0000
committerGitHub <noreply@github.com>2021-11-30 14:08:42 -0600
commitc39d4f455d6663948c06c1f8186ab69b24ea0013 (patch)
treef07a683107c19099fe5b1d424df8e94f1ce19322 /cloudinit/config
parent4bf4de25ea487ceb7005dc63d01f73fe56a13a16 (diff)
downloadvyos-cloud-init-c39d4f455d6663948c06c1f8186ab69b24ea0013.tar.gz
vyos-cloud-init-c39d4f455d6663948c06c1f8186ab69b24ea0013.zip
cc_ssh_authkey_fingerprints.py: prevent duplicate messages on console (#1081)
When cloud-init is configured to show SSH user key fingerprints during boot two of the same message appears for each user. This appears to be as the util.multi_log call defaults to send to both console directly and to stderr (which also goes to console). This change sends them only to console directly.
Diffstat (limited to 'cloudinit/config')
-rwxr-xr-xcloudinit/config/cc_ssh_authkey_fingerprints.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_ssh_authkey_fingerprints.py b/cloudinit/config/cc_ssh_authkey_fingerprints.py
index 05d30ad1..5323522c 100755
--- a/cloudinit/config/cc_ssh_authkey_fingerprints.py
+++ b/cloudinit/config/cc_ssh_authkey_fingerprints.py
@@ -70,7 +70,7 @@ def _pprint_key_entries(user, key_fn, key_entries, hash_meth='sha256',
if not key_entries:
message = ("%sno authorized SSH keys fingerprints found for user %s.\n"
% (prefix, user))
- util.multi_log(message)
+ util.multi_log(message, console=True, stderr=False)
return
tbl_fields = ['Keytype', 'Fingerprint (%s)' % (hash_meth), 'Options',
'Comment']