PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
60 stars 14 forks source link

Get-DscResource returns classes without [DscResource()] attribute #105

Open ThomasNieto opened 1 year ago

ThomasNieto commented 1 year ago

Prerequisites

Steps to reproduce

If you have a module containing classes that do not have [DscResource()] attribute Get-DscResource will return those classes as if they were a resource.

PSDsc should check classes to see if they have that attribute and not return them.

Expected behavior

# classes without `[DscResource()]` are not returned as resources

Actual behavior

ImplementationDetail :
ResourceType         : Reason
Name                 : Reason
FriendlyName         :
Module               :
ModuleName           :
Version              :
Path                 :
ParentPath           :
ImplementedAs        : Binary
CompanyName          :
Properties           :

Error details

No response

Environment data

7.4-preview2

Version

2.0.6

Visuals

No response