Skip to content

Commit 4240174

Browse files
fix(datastore): only require name to fetch data source (#71)
1 parent 828ffb3 commit 4240174

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

schemas/datastore.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func Datastore() map[string]*schema.Schema {
271271
"ds_fqdn": {
272272
Description: `Datastore Fully Qualified Domain Name`,
273273
Type: schema.TypeString,
274-
Required: true,
274+
Optional: true,
275275
DiffSuppressFunc: func(k, oldValue, newValue string, d *schema.ResourceData) bool {
276276
if oldValue == fmt.Sprintf("https://%s", newValue) {
277277
return true
@@ -283,7 +283,7 @@ func Datastore() map[string]*schema.Schema {
283283
"ds_path": {
284284
Description: `Datastore relative path w.r.t. Datastore root`,
285285
Type: schema.TypeString,
286-
Required: true,
286+
Optional: true,
287287
},
288288

289289
"ds_status": {
@@ -296,7 +296,7 @@ func Datastore() map[string]*schema.Schema {
296296
"ds_type": {
297297
Description: `Datastore type`,
298298
Type: schema.TypeString,
299-
Required: true,
299+
Optional: true,
300300
},
301301

302302
"encrypted_secrets": {
@@ -380,7 +380,7 @@ func Datastore() map[string]*schema.Schema {
380380
"title": {
381381
Description: `User defined title of the datastore. Title can be changed at any time.`,
382382
Type: schema.TypeString,
383-
Required: true,
383+
Optional: true,
384384
},
385385
}
386386
}

0 commit comments

Comments
 (0)