diff options
author | elijah <elijah@riseup.net> | 2016-03-17 14:41:54 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-17 14:41:54 -0700 |
commit | 55ede82e2127095d613f062dc452e33c87f7b424 (patch) | |
tree | 23741aea60c5753d496bb5922be1431457377461 /lib | |
parent | df8b42ffd48a324d63a229a55c11c61076166657 (diff) |
allow 'node rm' on disabled nodes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/commands/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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]) |