commands/global-status: call proper method

This commit is contained in:
Mitchell Hashimoto 2014-04-23 06:21:44 -07:00
parent 5da77dee5c
commit e1c79c4692
1 changed files with 1 additions and 1 deletions

View File

@ -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