From 0108ea577ed833f40866789e34af00c5e526224b Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 29 Jul 2013 21:06:36 -0700 Subject: allow ssh to disabled nodes --- lib/leap_cli/commands/node.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/leap_cli/commands/node.rb') diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index b700a90..0d33071 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -139,9 +139,12 @@ module LeapCli; module Commands write_file!(:known_hosts, buffer.string) end - def get_node_from_args(args) + def get_node_from_args(args, options={}) node_name = args.first node = manager.node(node_name) + if node.nil? && options[:include_disabled] + node = manager.disabled_node(node_name) + end assert!(node, "Node '#{node_name}' not found.") node end -- cgit v1.2.3