Skip to content

Commit 115e12e

Browse files
Update hostname from required to default_from_api (#8002) (#5670)
Signed-off-by: Modular Magician <[email protected]>
1 parent 1d8417e commit 115e12e

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.changelog/8002.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
gkeonprem: updated `hostname` field of ip_block from required to optional from resource `google_gkeonprem_vmware_cluster`
3+
```

google-beta/resource_gkeonprem_vmware_cluster.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,17 @@ used for VMware user clusters.`,
545545
Description: `The node's network configurations used by the VMware User Cluster.`,
546546
Elem: &schema.Resource{
547547
Schema: map[string]*schema.Schema{
548-
"hostname": {
549-
Type: schema.TypeString,
550-
Required: true,
551-
Description: `Hostname of the machine. VM's name will be used if this field is empty.`,
552-
},
553548
"ip": {
554549
Type: schema.TypeString,
555550
Required: true,
556551
Description: `IP could be an IP address (like 1.2.3.4) or a CIDR (like 1.2.3.0/24).`,
557552
},
553+
"hostname": {
554+
Type: schema.TypeString,
555+
Computed: true,
556+
Optional: true,
557+
Description: `Hostname of the machine. VM's name will be used if this field is empty.`,
558+
},
558559
},
559560
},
560561
},

website/docs/r/gkeonprem_vmware_cluster.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ The following arguments are supported:
447447
IP could be an IP address (like 1.2.3.4) or a CIDR (like 1.2.3.0/24).
448448

449449
* `hostname` -
450-
(Required)
450+
(Optional)
451451
Hostname of the machine. VM's name will be used if this field is empty.
452452

453453
<a name="nested_dhcp_ip_config"></a>The `dhcp_ip_config` block supports:

0 commit comments

Comments
 (0)