DSC icon indicating copy to clipboard operation
DSC copied to clipboard

[WIP] WMI adapter improvements

Open Gijsreyn opened this issue 1 year ago • 4 comments

PR Summary

Starting to address #475 and new wmiAdapter module included

PR Context

Gijsreyn avatar Aug 15 '24 14:08 Gijsreyn

@anmenaga Hey Andrew, I definitely didn’t want to step on your toes, but while I was testing the WMI adapter, I thought I'd contribute a bit. Would you mind taking a look at my initial commit when you have a moment?

Gijsreyn avatar Aug 16 '24 05:08 Gijsreyn

@michaeltlombardi Hey Mikey, I could not attend the DSC community call last week so was unable to ask the question here. In the wmi.resource.ps1 file, resources are listed in a [pscustomobject] matching the dsc-resource schema definition. When developing the set operation capability, I stumbled on the fact, that there is not a key property that allows setting the CimClassMethods

I don't know if this is something that can be changed. In the current PR, I coined to use methodDetails or methods. I recognize other adapters "might" require to implement it or set it as null / array value.

If it's something to be discussed into a discussion, then that's also fine.

Gijsreyn avatar Sep 05 '24 10:09 Gijsreyn

@Gijsreyn I appreciate you taking the time to help improve the WMI adapter, however, I think it would be more productive for us if you can make smaller targeted changes making it easier to review and get merged in rather than one large PR that will take a lot longer to review and iterate.

SteveL-MSFT avatar Sep 14 '24 22:09 SteveL-MSFT

@SteveL-MSFT Thanks for the response. I get the point, thought of picking most of the content what was already available from the powershell-adapter.

Gijsreyn avatar Sep 21 '24 11:09 Gijsreyn

Since this is a WIP, converting to draft PR

SteveL-MSFT avatar Jun 05 '25 18:06 SteveL-MSFT