From 502c1eae2f4aa900dcead1ee7ed5eaf88dba5a7c Mon Sep 17 00:00:00 2001 From: Abhishek Chaudhary Date: Tue, 16 Jan 2024 22:55:20 +0530 Subject: [PATCH] Feat/1.9.5 (#668) Co-authored-by: Abhishekism9450 <32683845+Abhishekism9450@users.noreply.github.com> --- CHANGELOG.md | 13 +++++++++++++ README.md | 4 +++- nutanix/data_source_nutanix_ndb_databases.go | 5 ++++- website/docs/r/virtual_machine.html.markdown | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e26aa5f3e..edcc136ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +## 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:** +- 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/ 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) 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.