VMNetworkAdapter: throws You cannot call a method on a null-valued expression
- introduced in version 3.17
#191
Labels
You cannot call a method on a null-valued expression
- introduced in version 3.17
#191
Details of the scenario you tried and the problem that is occurring
I'm using puppet's dsc xhyper_v module (a copy of this one) to manage
xvmnetworkadapter
. On version3.16.0-0-3
, the following code works. On version3.17.0-0-0
, it breaks.#Puppet code
In version
3.16.0-0-3
, the output is:In version
3.17.0-0-0
, the I get the messageYou cannot call a method on a null-valued expression
, as seen in this output: The same is true for version3.17.0-0-3
.Suggested solution to the issue
Did some code in the version 3.17 pull request add a reference that is not properly checked if it exists? Is it perhaps the inclusion of
vlanid
ornetworksetting
, that I do not include but seems to be new in that version of the code?The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used
3.16.0-0-3
- Known good3.17.0-0-0
--3
- Known bad.The text was updated successfully, but these errors were encountered: