← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~gholms/cloud-init/print-prints into lp:cloud-init

 

Garrett Holmstrom has proposed merging lp:~gholms/cloud-init/print-prints into lp:cloud-init.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~gholms/cloud-init/print-prints/+merge/125872

write-ssh-key-fingerprints currently appears to send key fingerprints to syslog, and public keys to stdout.  This means the fingerprints don't make it to the console like the file's commit history (and I) seem to expect it to, so this fix makes them both go to the same place:  stdout.
-- 
https://code.launchpad.net/~gholms/cloud-init/print-prints/+merge/125872
Your team cloud init development team is requested to review the proposed merge of lp:~gholms/cloud-init/print-prints into lp:cloud-init.
=== modified file 'tools/write-ssh-key-fingerprints'
--- tools/write-ssh-key-fingerprints	2011-12-20 05:13:07 +0000
+++ tools/write-ssh-key-fingerprints	2012-09-23 02:23:22 +0000
@@ -1,9 +1,7 @@
 #!/bin/sh
 fp_blist=",${1},"
 key_blist=",${2},"
-{
-echo
-echo "#############################################################"
+
 echo "-----BEGIN SSH HOST KEY FINGERPRINTS-----"
 for f in /etc/ssh/ssh_host_*key.pub; do
     [ -f "$f" ] || continue
@@ -13,9 +11,6 @@
     ssh-keygen -l -f "$f"
 done
 echo "-----END SSH HOST KEY FINGERPRINTS-----"
-echo "#############################################################"
-
-} | logger -p user.info -s -t "ec2"
 
 echo -----BEGIN SSH HOST KEY KEYS-----
 for f in /etc/ssh/ssh_host_*key.pub; do