Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
ThomasNieto opened this issue Apr 13, 2023 · 0 comments
Open
3 tasks done

Comments

@ThomasNieto
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant