You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So while I was trying to fix #3539 I changed the type of UpdateDelayPolicy to String, instead of String[], since that's what the Graph API expects to receive, then I backed it out and just joined the array into a single string but without touching the type.
Nevertheless the tests must have stayed in memory with the former change in place because I didn't notice any problems but my fix on #4099 actually created another problem which is with DSC you cannot change a parameter type directly on the fly just like I did on that PR, by joining the string it effectively changes the type from String[] to String so on top of the initial problem now the type validation on UpdateDelayPolicy also fails.
Short story, in order to "fix the fix" we need to change UpdateDelayPolicy through what's inside PSBoundParameters instead of doing it directly, this has been tested successfully, PR will be sent shortly.
Description of the issue
So while I was trying to fix #3539 I changed the type of UpdateDelayPolicy to String, instead of String[], since that's what the Graph API expects to receive, then I backed it out and just joined the array into a single string but without touching the type.
Nevertheless the tests must have stayed in memory with the former change in place because I didn't notice any problems but my fix on #4099 actually created another problem which is with DSC you cannot change a parameter type directly on the fly just like I did on that PR, by joining the string it effectively changes the type from String[] to String so on top of the initial problem now the type validation on UpdateDelayPolicy also fails.
Short story, in order to "fix the fix" we need to change UpdateDelayPolicy through what's inside PSBoundParameters instead of doing it directly, this has been tested successfully, PR will be sent shortly.
Microsoft 365 DSC Version
1.23.1227.1
Which workloads are affected
other
The DSC configuration
Verbose logs showing the problem
N/A
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: