SqlDatabasePermission: Using the property Reasons
with type [Reason]
fails if two modules have type [Reason]
#1832
Labels
breaking change
When used on an issue, the issue has been determined to be a breaking change.
bug
The issue is a bug.
external
The issue cannot be resolved within the DSC Resource Kit.
good first issue
The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
Problem description
If two resources, each for an indvidual module, both have the property
Reasons
a configuration that uses those two resources fail to parse. This is because the code[DscProperty()] [Reasons[]] $Reasons
fails to parse when it finds the same class name loaded in two modules.@nyanhp found and reproduce this. @nyanhp created a repository that shows the issue with both class-based resources and MOF-based resources: https://github.com/nyanhp/DscRepro
Verbose logs
DSC configuration
Suggested solution
There is no fix for this as it is a external problem with PowerShell DSC. We must remove the property
Reasons
from the resource.SQL Server edition and version
SQL Server PowerShell modules
Operating system
PowerShell version
SqlServerDsc version
The text was updated successfully, but these errors were encountered: