lib/core/controlplane.rb in cpl-1.1.0 vs lib/core/controlplane.rb in cpl-1.1.1
- old
+ new
@@ -12,9 +12,10 @@
# profile
def profile_switch(profile)
ENV["CPLN_PROFILE"] = profile
+ ControlplaneApiDirect.reset_api_token
end
def profile_exists?(profile)
cmd = "cpln profile get #{profile} -o yaml"
perform_yaml(cmd).length.positive?