From f3b405f62b06551bb0e62e5594259bb6be8516f9 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 4 Apr 2014 14:18:45 -0700 Subject: yasf: yet another ssh fix. should make `leap deploy` work better with ~/.ssh/config per-domain settings. --- lib/leap_cli/config/manager.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/leap_cli/config/manager.rb') diff --git a/lib/leap_cli/config/manager.rb b/lib/leap_cli/config/manager.rb index b610d3b..5076b63 100644 --- a/lib/leap_cli/config/manager.rb +++ b/lib/leap_cli/config/manager.rb @@ -204,6 +204,11 @@ module LeapCli # returns a single Config::Object that corresponds to a Node. # def node(name) + if name =~ /\./ + # probably got a fqdn, since periods are not allowed in node names. + # so, take the part before the first period as the node name + name = name.split('.').first + end @nodes[name] end -- cgit v1.2.3