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
Details of the scenario you tried and the problem that is occurring
The Test method for the SCLabelPolicy resource would always return false when the policy existed and was in the desired state. This was because the value would always be treated as a string but actually was an array.
Verbose logs showing the problem
VERBOSE: [DESKTOP-6JBI6T8]: [[SCLabelPolicy]58adabb3-68ad-40f8-9426-9c6672ad05b0] Test AdvancedSetting
s returns False
VERBOSE: [DESKTOP-6JBI6T8]: LCM: [ End Test ] [[SCLabelPolicy]58adabb3-68ad-40f8-9426-9c6672ad05b0] in 1.7970 seconds.
Suggested solution to the issue
When the parameter only has one value, make sure this is converted into a string before compare.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Details of the scenario you tried and the problem that is occurring
The Test method for the SCLabelPolicy resource would always return false when the policy existed and was in the desired state. This was because the value would always be treated as a string but actually was an array.
Verbose logs showing the problem
VERBOSE: [DESKTOP-6JBI6T8]: [[SCLabelPolicy]58adabb3-68ad-40f8-9426-9c6672ad05b0] Test AdvancedSetting
s returns False
VERBOSE: [DESKTOP-6JBI6T8]: LCM: [ End Test ] [[SCLabelPolicy]58adabb3-68ad-40f8-9426-9c6672ad05b0] in 1.7970 seconds.
Suggested solution to the issue
When the parameter only has one value, make sure this is converted into a string before compare.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The Public value is a single string, but the code treats this as an array.
The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
Dev
The text was updated successfully, but these errors were encountered: