diff --git a/libvirt/resource_libvirt_domain_test.go b/libvirt/resource_libvirt_domain_test.go index ab7cd2474..7f3389a45 100644 --- a/libvirt/resource_libvirt_domain_test.go +++ b/libvirt/resource_libvirt_domain_test.go @@ -394,7 +394,7 @@ func TestAccLibvirtDomain_NetworkInterface(t *testing.T) { network_interface = { network_name = "default" mac = "52:54:00:A9:F5:17" - wait_for_lease = 1 + wait_for_lease = true } disk { file = "%s/testdata/tcl.iso" diff --git a/website/docs/r/domain.html.markdown b/website/docs/r/domain.html.markdown index 18767d8d8..858fcbdf7 100644 --- a/website/docs/r/domain.html.markdown +++ b/website/docs/r/domain.html.markdown @@ -338,7 +338,7 @@ resource "libvirt_domain" "domain1" { hostname = "master" addresses = ["10.17.3.3"] mac = "AA:BB:CC:11:22:22" - wait_for_lease = 1 + wait_for_lease = true } } ``` @@ -356,7 +356,7 @@ When using a virtual network, users can specify: * `addresses` - (Optional) An IP address for this domain in this network. * `hostname` - (Optional) A hostname that will be assigned to this domain resource in this network. -* `wait_for_lease`- (Optional) When creating the domain resource, wait until the +* `wait_for_lease`- (Optional boolean) When creating the domain resource, wait until the network interface gets a DHCP lease from libvirt, so that the computed IP addresses will be available when the domain is up and the plan applied.