vmware / dscr-for-vmware

The Repository contains Microsoft PowerShell Desired State Configuration (DSC) Resources for managing VC and ESXi settings.
Other
139 stars 41 forks source link

Topic/null reference fix #313

Closed dmilov closed 3 years ago

dmilov commented 3 years ago

Testing done:

PS C:\Users\dmilov> $config = New-VmwDscConfiguration VMHost_Network_Config
PS C:\Users\dmilov> Start-VmwDscConfiguration $config
Exception: C:\Temp\DSCTest\Modules\VMware.PSDesiredStateConfiguration\Classes\DscItems.ps1:1458
Line |
1458 |  …             throw "Incorrect DSC Configuration: Key Property '$dscKey …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Incorrect DSC Configuration: Key Property 'VMHostName' of resource [VMHostVssNic]VMHostVssNic is NUL
PS C:\Users\dmilov> . C:\Temp\DSCConfigs\VCESXConfig.ps1
PS C:\Users\dmilov> $config = New-VmwDscConfiguration VMHost_Network_Config
PS C:\Users\dmilov> Start-VmwDscConfiguration $config
PS C:\Users\dmilov>
vmwclabot commented 3 years ago

@dmilov, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.