diff --git a/client/foundation/foundation_structs.go b/client/foundation/foundation_structs.go index 3badef02c..d03a3a1d6 100644 --- a/client/foundation/foundation_structs.go +++ b/client/foundation/foundation_structs.go @@ -284,7 +284,8 @@ type NodeNetworkDetail struct { //Node network details api input type NodeNetworkDetailsInput struct { - Nodes []NodeIpv6Input `json:"nodes"` + Nodes []NodeIpv6Input `json:"nodes"` + Timeout string `json:"timeout,omitempty"` } //Node ipv6 details for node network details api diff --git a/nutanix/data_source_foundation_hypervisor_isos.go b/nutanix/data_source_foundation_hypervisor_isos.go index b75cc2124..a285b6ad9 100644 --- a/nutanix/data_source_foundation_hypervisor_isos.go +++ b/nutanix/data_source_foundation_hypervisor_isos.go @@ -118,7 +118,7 @@ func dataSourceFoundationHypervisorIsosRead(ctx context.Context, d *schema.Resou if err := d.Set("linux", flattenHypervisorIsos(resp.Linux)); err != nil { return diag.FromErr(err) } - if err := d.Set("xen", flattenHypervisorIsos(resp.Linux)); err != nil { + if err := d.Set("xen", flattenHypervisorIsos(resp.Xen)); err != nil { return diag.FromErr(err) } diff --git a/nutanix/data_source_foundation_node_network_details.go b/nutanix/data_source_foundation_node_network_details.go index bf70c5780..4c1b54dd4 100644 --- a/nutanix/data_source_foundation_node_network_details.go +++ b/nutanix/data_source_foundation_node_network_details.go @@ -21,6 +21,10 @@ func dataSourceNodeNetworkDetails() *schema.Resource { Required: true, Elem: &schema.Schema{Type: schema.TypeString}, }, + "timeout": { + Type: schema.TypeString, + Optional: true, + }, "nodes": { Type: schema.TypeList, Computed: true, @@ -105,6 +109,10 @@ func dataSourceNodeNetworkDetailsRead(ctx context.Context, d *schema.ResourceDat for _, val := range ipv6Addresses { input.Nodes = append(input.Nodes, foundation.NodeIpv6Input{Ipv6Address: *val}) } + tout, ok := d.GetOk("timeout") + if ok { + input.Timeout = (tout.(string)) + } resp, err := conn.Networking.NodeNetworkDetails(ctx, input) if err != nil {