dsccommunity / HyperVDsc

This module contains DSC resources for deployment and configuration of Microsoft Hyper-V.
MIT License
114 stars 65 forks source link

VMNetworkAdapter: Fix Get- failing for a ManagementOS adapter #188

Open jberezanski opened 3 years ago

jberezanski commented 3 years ago

Pull Request (PR) description

The Get-NetworkInformation function does not work for a ManagementOS adapter and should not be called in that code path in Get-TargetResource.

This Pull Request (PR) fixes the following issues

None

Task list


This change is Reviewable

jberezanski commented 3 years ago

It seems the unit tests are completely broken, possibly due to breaking changes in Pester 5.x. And even if they were correct syntacticaly, most of the tests of this resource contain logic flaws. I can attempt to fix this, but it will take some time.

johlju commented 2 years ago

We have renamed the resource, removing 'x', so please rebase this PR.

jberezanski commented 1 year ago

I never noticed the resource rename until now. I'll rework this PR soon.