From c07f99fe7d440fb1a1c428c6dd303403347640a3 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 7 Dec 2018 10:59:21 -0800 Subject: [PATCH] Move feature flag checking into a single function --- lib/vagrant/util/experimental.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/util/experimental.rb b/lib/vagrant/util/experimental.rb index 46c3b9c86..e1200678e 100644 --- a/lib/vagrant/util/experimental.rb +++ b/lib/vagrant/util/experimental.rb @@ -9,8 +9,8 @@ module Vagrant # @return [Boolean] def global_enabled? if !defined?(@_experimental) - experimental = ENV["VAGRANT_EXPERIMENTAL"].to_s - if experimental != "0" && !experimental.empty? + experimental = features_requested + if experimental.size >= 1 && experimental.first != "0" @_experimental = true else @_experimental = false