From 55ede82e2127095d613f062dc452e33c87f7b424 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 17 Mar 2016 14:41:54 -0700 Subject: allow 'node rm' on disabled nodes --- lib/leap_cli/commands/node.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index cc352762..142c0766 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -53,7 +53,7 @@ module LeapCli; module Commands node.arg_name 'OLD_NAME NEW_NAME' node.command :mv do |mv| mv.action do |global_options,options,args| - node = get_node_from_args(args) + node = get_node_from_args(args, include_disabled: true) new_name = args.last assert_valid_node_name!(new_name, node.vagrant?) ensure_dir [:node_files_dir, new_name] @@ -69,7 +69,7 @@ module LeapCli; module Commands node.arg_name 'NAME' #:optional => false #, :multiple => false node.command :rm do |rm| rm.action do |global_options,options,args| - node = get_node_from_args(args) + node = get_node_from_args(args, include_disabled: true) remove_node_files(node.name) if node.vagrant? vagrant_command("destroy --force", [node.name]) -- cgit v1.2.3