]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
fix the generation of the known_hosts file
authorelijah <elijah@riseup.net>
Tue, 30 Oct 2012 20:26:07 +0000 (13:26 -0700)
committerelijah <elijah@riseup.net>
Tue, 30 Oct 2012 20:26:07 +0000 (13:26 -0700)
lib/leap_cli/commands/node.rb

index de6adadf2e1c3df4b3a795de2f98963176035bab..e96293c8cee953a7faa56aa1e22c8cfde876ae14 100644 (file)
@@ -60,6 +60,7 @@ module LeapCli; module Commands
       pub_key = read_file([:node_ssh_pub_key,node.name])
       if pub_key
         buffer << [hostnames, pub_key].join(' ')
+        buffer << "\n"
       end
     end
     write_file!(:known_hosts, buffer.string)