Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/VMware.vSphereDSC/Classes/VMHostNicBaseDSC.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class VMHostNicBaseDSC : VMHostEntityBaseDSC {
Both Dhcp and IPv6Enabled are applicable only for the Update operation, so they are not
populated in the GetVMHostNetworkAdapterParams() which is used for Create and Update operations.
#>
if ($null -ne $this.Dhcp) {
if ($null -ne $this.Dhcp -and $this.Dhcp) {
$vmHostNetworkAdapterParams.Dhcp = $this.Dhcp

<#
Expand Down