summaryrefslogtreecommitdiff
path: root/lib/leap_cli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli')
-rw-r--r--lib/leap_cli/commands/node.rb4
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])