From e1c79c4692f87757aa5b7d03a3d23072ad2681a3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 23 Apr 2014 06:21:44 -0700 Subject: [PATCH] commands/global-status: call proper method --- plugins/commands/global-status/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands/global-status/command.rb b/plugins/commands/global-status/command.rb index 09c14ca60..da1399c0c 100644 --- a/plugins/commands/global-status/command.rb +++ b/plugins/commands/global-status/command.rb @@ -42,7 +42,7 @@ module VagrantPlugins @env.machine_index.each do |entry| # If we're pruning and this entry is invalid, skip it # and prune it later. - if options[:prune] && entry.invalid?(@env.home_path) + if options[:prune] && !entry.valid?(@env.home_path) prune << entry next end