aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/node.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-30 13:26:07 -0700
committerelijah <elijah@riseup.net>2012-10-30 13:26:07 -0700
commitf339e7b94ab8920fd1e271c50145b5d2d1a8ac9d (patch)
tree2c2ccd1de76284fa525413be8577c3d234784326 /lib/leap_cli/commands/node.rb
parent753d0049a2dd952eab47df89175611298d7f8755 (diff)
downloadleap_cli-f339e7b94ab8920fd1e271c50145b5d2d1a8ac9d.tar.gz
leap_cli-f339e7b94ab8920fd1e271c50145b5d2d1a8ac9d.tar.bz2
fix the generation of the known_hosts file
Diffstat (limited to 'lib/leap_cli/commands/node.rb')
-rw-r--r--lib/leap_cli/commands/node.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb
index de6adad..e96293c 100644
--- a/lib/leap_cli/commands/node.rb
+++ b/lib/leap_cli/commands/node.rb
@@ -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)