From ba717bfe16612c8313632f3a9555c6ce68291e63 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 27 Jun 2013 22:38:38 -0700 Subject: include a note in known_hosts to not edit known_hosts --- lib/leap_cli/commands/node.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index 2f4fab8..d47ead1 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -123,6 +123,10 @@ module LeapCli; module Commands # def update_known_hosts buffer = StringIO.new + buffer << "#\n" + buffer << "# This file is automatically generated by the command `leap`. You should NOT modify this file.\n" + buffer << "# Instead, rerun `leap node init` on whatever node is causing SSH problems.\n" + buffer << "#\n" manager.nodes.keys.sort.each do |node_name| node = manager.nodes[node_name] hostnames = [node.name, node.domain.internal, node.domain.full, node.ip_address].map {|hn| -- cgit v1.2.3