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

DSC provider resource listing errors block dsc resource and dsc config #110

Closed
3 tasks done
michaeltlombardi opened this issue Jul 26, 2023 · 1 comment
Closed
3 tasks done
Labels
Issue-Bug Something isn't working Resolution-Fixed The issue is fixed

Comments

@michaeltlombardi
Copy link
Collaborator

michaeltlombardi commented Jul 26, 2023

Prerequisites

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

Steps to reproduce

When calling dsc resource get|set|test and dsc config get|set|test any errors for the resource list operation bubble up to DSC and block execution, even when the PowerShell group provider isn't being used.

Expected behavior

'{ "scope": "machine" }' |
    dsc resource get --resource TSToy.Example/gotstoy
{"ensure":"absent","scope":"machine"}

Actual behavior

'{ "scope": "machine" }' |
    dsc resource get --resource TSToy.Example/gotstoy
Error: Operation: Failed to parse resource from provider DSC/PowerShellGroup:
WARNING: There are no modules present in the system with the given module
specification. -> expected value at line 1 column 1

Error details

Error: Operation: Failed to parse resource from provider DSC/PowerShellGroup:
WARNING: There are no modules present in the system with the given module
specification. -> expected value at line 1 column 1

Environment data

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

Version

0.2.0 (build from main)

Visuals

No response

SteveL-MSFT added a commit that referenced this issue Aug 2, 2023
…sion-handling

(GH-110) Handle missing PSDesiredStateConfiguration module for ps group resource
@michaeltlombardi michaeltlombardi added the Issue-Bug Something isn't working label Aug 30, 2023
@SteveL-MSFT
Copy link
Member

This is already fixed. Errors during discovery are warnings.

@SteveL-MSFT SteveL-MSFT added the Resolution-Fixed The issue is fixed label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Resolution-Fixed The issue is fixed
Projects
None yet
Development

No branches or pull requests

2 participants