From: elijah Date: Fri, 28 Jun 2013 05:38:38 +0000 (-0700) Subject: include a note in known_hosts to not edit known_hosts X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ba717bfe16612c8313632f3a9555c6ce68291e63;p=leap%2Fleap_cli.git include a note in known_hosts to not edit known_hosts --- 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|