provider=none forces not using a token.

This commit is contained in:
Luka Vandervelden 2019-11-16 13:25:00 +01:00
parent caeb5fcb70
commit 00dc153121

View File

@ -91,6 +91,8 @@ commands.push "add", "Adds a service to an environment." do |context, args|
if provider.nil? if provider.nil?
provider = service.get_default_provider token.token provider = service.get_default_provider token.token
elsif provider == "none"
provider = nil
end end
next if provider.nil? && token.optional next if provider.nil? && token.optional