Skip to content

Commit

Permalink
Fix issue with failing test and update docs
Browse files Browse the repository at this point in the history
Signed-off-by: Dom Del Nano <[email protected]>
  • Loading branch information
ddelnano committed Mar 19, 2024
1 parent 4bfebc7 commit 00bdb44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/resources/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Required:
Optional:

- `attached` (Boolean) Whether the device should be attached to the VM.
- `expected_ip_cidr` (String) Whether terraform should wait until IP addresses are present on the VM's network interfaces before considering it created. This only works if guest-tools are installed in the VM. Defaults to false.
- `expected_ip_cidr` (String) Determines the IP cidr range terraform should watch for on this network interface. Resource creation is not complete until the IP address converges to the specified range. This only works if guest-tools are installed in the VM. Defaults to "", which skips IP address matching.
- `mac_address` (String) The mac address of the network interface. This must be parsable by go's [net.ParseMAC function](https://golang.org/pkg/net/#ParseMAC). All mac addresses are stored in Terraform's state with [HardwareAddr's string representation](https://golang.org/pkg/net/#HardwareAddr.String) i.e. 00:00:5e:00:53:01

Read-Only:
Expand Down
2 changes: 1 addition & 1 deletion xoa/resource_xenorchestra_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ $ xo-cli xo.getAllObjects filter='json:{"id": "cf7b5d7d-3cd5-6b7c-5025-5c935c8cd
"expected_ip_cidr": &schema.Schema{
Type: schema.TypeString,
Default: "",
Description: "Whether terraform should wait until IP addresses are present on the VM's network interfaces before considering it created. This only works if guest-tools are installed in the VM. Defaults to false.",
Description: "Determines the IP cidr range terraform should watch for on this network interface. Resource creation is not complete until the IP address converges to the specified range. This only works if guest-tools are installed in the VM. Defaults to \"\", which skips IP address matching.",
Optional: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion xoa/resource_xenorchestra_vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ resource "xenorchestra_vm" "bar" {
}

func testAccVmConfig(vmName string) string {
return testAccVmConfigWithWaitForIp(vmName, "0.0.0.0/0")
return testAccVmConfigWithWaitForIp(vmName, "")
}

func testAccVmConfigWithWaitForIp(vmName, expectedIpCidr string) string {
Expand Down

0 comments on commit 00bdb44

Please sign in to comment.