From 74d5db4f3e4879f2da08bdac2559b0647d7da65b Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Tue, 7 Jun 2016 08:16:04 -0700 Subject: [PATCH] Don't require vsphere debug paths to be set (#7027) The change to add govmomi debug paths (#6893) required user input even when the env was not set. This change defaults those values appropriately. --- builtin/providers/vsphere/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/vsphere/provider.go b/builtin/providers/vsphere/provider.go index c13f089b24..be46b50d6d 100644 --- a/builtin/providers/vsphere/provider.go +++ b/builtin/providers/vsphere/provider.go @@ -52,13 +52,13 @@ func Provider() terraform.ResourceProvider { "client_debug_path_run": &schema.Schema{ Type: schema.TypeString, Optional: true, - DefaultFunc: schema.EnvDefaultFunc("VSPHERE_CLIENT_DEBUG_PATH_RUN", nil), + DefaultFunc: schema.EnvDefaultFunc("VSPHERE_CLIENT_DEBUG_PATH_RUN", ""), Description: "govomomi debug path for a single run", }, "client_debug_path": &schema.Schema{ Type: schema.TypeString, Optional: true, - DefaultFunc: schema.EnvDefaultFunc("VSPHERE_CLIENT_DEBUG_PATH", nil), + DefaultFunc: schema.EnvDefaultFunc("VSPHERE_CLIENT_DEBUG_PATH", ""), Description: "govomomi debug path for debug", }, },