summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-04-06 14:05:48 -0700
committerelijah <elijah@riseup.net>2016-04-06 14:05:48 -0700
commit45daf792f8c566689d4a7b59f0a0af19fb316f61 (patch)
treeb290fc231efc097af6f4292b217300f7802ffe7f /lib
parenta7be1dbba859017c2f4dfe5f78c022816e13bf9e (diff)
ensure provider objects in defeault environment have 'nil' for environment. closes #8006
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/provider.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/leap_cli/config/provider.rb b/lib/leap_cli/config/provider.rb
index 06c49aa..3c03c5c 100644
--- a/lib/leap_cli/config/provider.rb
+++ b/lib/leap_cli/config/provider.rb
@@ -6,7 +6,11 @@ module LeapCli; module Config
class Provider < Object
attr_reader :environment
def set_env(e)
- @environment = e
+ if e == 'default'
+ @environment = nil
+ else
+ @environment = e
+ end
end
def provider
self