M365DSCUtil is missing the Test-M365DSCObjectHasProperty function
While looking through M365DSCUtil's Test-M365DSCParameterState function and trying to understand what it does I stumbled across the following line of code:
$CheckDesiredValue = Test-M365DSCObjectHasProperty -Object $DesiredValues -PropertyName $_
I can't find the function 'Test-M365DSCObjectHasProperty' anywhere. Is it part of a different module?
Very good catch @EricHindrichsen. So a bit of a history lesson 😄, the core Util module evolved from a copy of what we're doing in SharePointDSC (cc'ing @ykuijs). The method is actually called Test-SPDscObjectHasProperty: https://github.com/dsccommunity/SharePointDsc/blob/a821727468457269e368b222fd0986f43cb62793/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1#L811
I believe this was somehow lost in translation back in April when the rebranding to M365DSC happened. The method will be re-introduced in the next release (1.20.1028.1). Stay tuned for a PR coming soon.
Alright, looking forward to it! The missing function didn't cause any trouble for us yet, so no rush at least from my side.
From: Nik Charlebois [email protected] Sent: Thursday, October 22, 2020 10:46:42 PM To: microsoft/Microsoft365DSC [email protected] Cc: Eric Hindrichsen [email protected]; Mention [email protected] Subject: Re: [microsoft/Microsoft365DSC] M365DSCUtil is missing the Test-M365DSCObjectHasProperty function (#861)
Very good catch @EricHindrichsenhttps://github.com/EricHindrichsen. So a bit of a history lesson 😄, the core Util module evolved from a copy of what we're doing in SharePointDSC (cc'ing @ykuijshttps://github.com/ykuijs). The method is actually called Test-SPDscObjectHasProperty: https://github.com/dsccommunity/SharePointDsc/blob/a821727468457269e368b222fd0986f43cb62793/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1#L811
I believe this was somehow lost in translation back in April when the rebranding to M365DSC happened. The method will be re-introduced in the next release (1.20.1028.1). Stay tuned for a PR coming soon.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/Microsoft365DSC/issues/861#issuecomment-714752327, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQYFHRZSS7EP5PSVWBW3SXTSMCK3FANCNFSM4S3K6QXQ.