diff --git a/lib/vmfloaty/cli.rb b/lib/vmfloaty/cli.rb index 5f879a4..bd98428 100644 --- a/lib/vmfloaty/cli.rb +++ b/lib/vmfloaty/cli.rb @@ -35,11 +35,12 @@ class CLI < Thor if pattern # Filtering VMs based on pattern + hosts = host_res.select { |i| i[/#{pattern}/] } else - # list all vms + hosts = host_res end - puts host_res + puts hosts end desc "release ", "Schedules a VM for deletion"