From d4a49826c4f8c68df5d5eea38e1220ce4279c8bc Mon Sep 17 00:00:00 2001 From: Abhishekism9450 <32683845+Abhishekism9450@users.noreply.github.com> Date: Tue, 16 Jan 2024 00:28:20 +0530 Subject: [PATCH 1/4] handling the error (#653) --- nutanix/data_source_nutanix_ndb_databases.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nutanix/data_source_nutanix_ndb_databases.go b/nutanix/data_source_nutanix_ndb_databases.go index 82f2aae9a..984c49e01 100644 --- a/nutanix/data_source_nutanix_ndb_databases.go +++ b/nutanix/data_source_nutanix_ndb_databases.go @@ -128,7 +128,10 @@ func dataSourceNutanixEraDatabaseIntancesRead(ctx context.Context, d *schema.Res if dbEng, ok := d.GetOk("database_type"); ok { // todo : when era have query params for db egine type call , API here // filter the database based on db engine type provided - respon, _ := conn.Service.ListDatabaseInstance(ctx) + respon, er := conn.Service.ListDatabaseInstance(ctx) + if er != nil { + return diag.FromErr(er) + } resp, err = filterDatabaseBasedOnDatabaseEngine(respon, dbEng.(string)) if err != nil { return diag.FromErr(err) From 9680fbe54542589ac2e6293fb7ac245878038ad2 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 16 Jan 2024 01:02:23 +0530 Subject: [PATCH 2/4] added changelog and readme --- CHANGELOG.md | 13 +++++++++++++ README.md | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e26aa5f3e..9d1d42ecf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +## 1.9.5 (January 16m 2024) +[Full Changelog](https://github.com/nutanix/terraform-provider-nutanix/compare/feat/1.9.4...feat/1.9.5) + +**Merged pull request:** +- Fixing the error for NDB datasource for databases if creds are invalid. [\#668](https://github.com/nutanix/terraform-provider-nutanix/pull/668) + +**Closed issues:** +- Memory MiB quantity value shows discrepancy in terraform plugin and Prism.. [\#654](https://github.com/nutanix/terraform-provider-nutanix/issues/654) + +**Fixed bugs:** +- Datasource nutanix_ndb_databases doesn't return error if creds are invalid. [\#667](https://github.com/nutanix/terraform-provider-nutanix/issues/667) + + ## 1.9.4 (October 27, 2023) [Full Changelog](https://github.com/nutanix/terraform-provider-nutanix/compare/feat/1.9.3...feat/1.9.4) diff --git a/README.md b/README.md index 7c6cfdf9a..27cb1a4f5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Terraform provider plugin to integrate with Nutanix Enterprise Cloud -NOTE: The latest version of the Nutanix provider is [v1.9.4](https://github.com/nutanix/terraform-provider-nutanix/releases/tag/v1.9.4) +NOTE: The latest version of the Nutanix provider is [v1.9.5](https://github.com/nutanix/terraform-provider-nutanix/releases/tag/v1.9.5) Modules based on Terraform Nutanix Provider can be found here : [Modules](https://github.com/nutanix/terraform-provider-nutanix/tree/master/modules) ## Build, Quality Status @@ -89,6 +89,8 @@ Foundation Central based modules and examples : Foundation based modules & examp > For the 1.8.1 release of the provider, it will have N-2 compatibility with the Nutanix database service. This release was tested with v2.5.1.1, v2.5.1 and v2.5 versions. +> For the 1.9.5 release of the provider, it will have N-2 compatibility with the Nutanix database service. This release was tested with v2.5.1.1, v2.5.1 and v2.5 versions. + Note: For NDB related modules, only postgress database type is qualified and officially supported. Older versions of NDB may not support some resources. Checkout example : https://github.com/nutanix/terraform-provider-nutanix/blob/master/examples/ndb/ From f6963ec573a709291e37420b7942a38f6e2361c5 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 16 Jan 2024 01:08:45 +0530 Subject: [PATCH 3/4] updating website doc for vms --- website/docs/r/virtual_machine.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/virtual_machine.html.markdown b/website/docs/r/virtual_machine.html.markdown index cf31928b5..2ba4ba2fb 100644 --- a/website/docs/r/virtual_machine.html.markdown +++ b/website/docs/r/virtual_machine.html.markdown @@ -79,7 +79,7 @@ The following arguments are supported: * `num_sockets`: - (Optional) Number of vCPU sockets. * `gpu_list`: - (Optional) GPUs attached to the VM. * `parent_reference`: - (Optional) Reference to an entity that the VM cloned from. -* `memory_size_mib`: - (Optional) Memory size in MiB. +* `memory_size_mib`: - (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments. * `boot_device_order_list`: - (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order. * `boot_device_disk_address`: - (Optional) Address of disk to boot from. * `boot_device_mac_address`: - (Optional) MAC address of nic to boot from. From 83d5be818a46396e30bcb6b6beff523265a5e313 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 16 Jan 2024 01:10:15 +0530 Subject: [PATCH 4/4] updating changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d1d42ecf..edcc136ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.9.5 (January 16m 2024) +## 1.9.5 (January 16, 2024) [Full Changelog](https://github.com/nutanix/terraform-provider-nutanix/compare/feat/1.9.4...feat/1.9.5) **Merged pull request:**