providers/google: Default account_file* to empty

Prevents prompting for input
This commit is contained in:
Justin Campbell 2015-07-24 14:25:27 -04:00
parent a7ca7e0b36
commit 2a04708d66
1 changed files with 6 additions and 8 deletions

View File

@ -10,17 +10,15 @@ func Provider() terraform.ResourceProvider {
return &schema.Provider{
Schema: map[string]*schema.Schema{
"account_file": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ConflictsWith: []string{"account_file_contents"},
DefaultFunc: schema.EnvDefaultFunc("GOOGLE_ACCOUNT_FILE", nil),
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("GOOGLE_ACCOUNT_FILE", ""),
},
"account_file_contents": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ConflictsWith: []string{"account_file"},
DefaultFunc: schema.EnvDefaultFunc("GOOGLE_ACCOUNT_FILE_CONTENTS", nil),
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("GOOGLE_ACCOUNT_FILE_CONTENTS", ""),
},
"project": &schema.Schema{