diff --git a/lib/vagrant/util/env.rb b/lib/vagrant/util/env.rb index e7c23ccc6..3d3200f17 100644 --- a/lib/vagrant/util/env.rb +++ b/lib/vagrant/util/env.rb @@ -26,7 +26,7 @@ module Vagrant # @param [Proc] block # the block to execute with the cleaned environment # - def with_clean_env(&block) + def self.with_clean_env(&block) original = ENV.to_hash ENV.delete('_ORIGINAL_GEM_PATH')