From cd14111305dc3d38fba589516aa2c1cbe81d3a5d Mon Sep 17 00:00:00 2001 From: Paul BESRET Date: Thu, 8 Feb 2024 13:52:58 +0100 Subject: [PATCH] Fixed changes reverted --- docs/data-sources/compute_datastore.md | 2 +- internal/client/compute_datastore.go | 2 +- internal/provider/data_source_compute_datastore.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data-sources/compute_datastore.md b/docs/data-sources/compute_datastore.md index 2ab94a5..27828e8 100644 --- a/docs/data-sources/compute_datastore.md +++ b/docs/data-sources/compute_datastore.md @@ -48,7 +48,7 @@ data "cloudtemple_compute_datastore" "name" { - `hosts_names` (List of String) - `hosts_number` (Number) - `id` (String) The ID of this resource. -- `maintenance_status` (String) +- `maintenance_status` (Boolean) - `max_capacity` (Number) - `moref` (String) - `type` (String) diff --git a/internal/client/compute_datastore.go b/internal/client/compute_datastore.go index ff349b7..2ee6978 100644 --- a/internal/client/compute_datastore.go +++ b/internal/client/compute_datastore.go @@ -17,7 +17,7 @@ type Datastore struct { MaxCapacity int `terraform:"max_capacity"` FreeCapacity int `terraform:"free_capacity"` Accessible int `terraform:"accessible"` - MaintenanceStatus string `terraform:"maintenance_status"` + MaintenanceStatus bool `terraform:"maintenance_status"` UniqueId string `terraform:"unique_id"` MachineManagerId string `terraform:"machine_manager_id"` Type string `terraform:"type"` diff --git a/internal/provider/data_source_compute_datastore.go b/internal/provider/data_source_compute_datastore.go index bc1dff3..17b163c 100644 --- a/internal/provider/data_source_compute_datastore.go +++ b/internal/provider/data_source_compute_datastore.go @@ -94,7 +94,7 @@ func dataSourceDatastore() *schema.Resource { Computed: true, }, "maintenance_status": { - Type: schema.TypeString, + Type: schema.TypeBool, Computed: true, }, "unique_id": {