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

CmdletsToExports causes Get-DscResource to not return resources #101

Open
3 tasks done
ThomasNieto opened this issue Mar 8, 2023 · 1 comment
Open
3 tasks done
Labels

Comments

@ThomasNieto
Copy link

ThomasNieto commented Mar 8, 2023

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

I am using the NewFile example on the docs to test this. If the module manifest has CmdletsToExport key defined then Get-DscResource will not return any resources for that module.

Expected behavior

# Resources returned

Actual behavior

# No resources are returned

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.0.0-beta1

Visuals

No response

@ThomasNieto ThomasNieto changed the title CmdletsToExports causes Get-DscResources to not return resources CmdletsToExports causes Get-DscResource to not return resources Mar 8, 2023
@gaelcolas
Copy link
Collaborator

To concur with @ThomasNieto, here are some tests I've made:
image

I know it's a known issue because I remember the workaround was mentioned to the config team a year or two ago...
I can't find trace of an issue though (thanks @ThomasNieto).

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

No branches or pull requests

2 participants