mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
use 'Default' to forgo prompt
This commit is contained in:
parent
dc99dd1f05
commit
9b54c569cc
@ -24,17 +24,17 @@ func Provider() terraform.ResourceProvider {
|
|||||||
"user_id": &schema.Schema{
|
"user_id": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: envDefaultFunc("OS_USERID"),
|
Default: "",
|
||||||
},
|
},
|
||||||
"tenant_id": &schema.Schema{
|
"tenant_id": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: envDefaultFunc("OS_TENANT_ID"),
|
Default: "",
|
||||||
},
|
},
|
||||||
"tenant_name": &schema.Schema{
|
"tenant_name": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: envDefaultFunc("OS_TENANT_NAME"),
|
Default: "",
|
||||||
},
|
},
|
||||||
"password": &schema.Schema{
|
"password": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
@ -44,17 +44,17 @@ func Provider() terraform.ResourceProvider {
|
|||||||
"api_key": &schema.Schema{
|
"api_key": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: envDefaultFunc("OS_API_KEY"),
|
Default: "",
|
||||||
},
|
},
|
||||||
"domain_id": &schema.Schema{
|
"domain_id": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: envDefaultFunc("OS_DOMAIN_ID"),
|
Default: "",
|
||||||
},
|
},
|
||||||
"domain_name": &schema.Schema{
|
"domain_name": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: envDefaultFunc("OS_DOMAIN_NAME"),
|
Default: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user