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

Bug in xPackage resource: The parameter "Hash" is declared in parameter-set "__AllParameterSets" multiple times. #702

Closed
raandree opened this issue Nov 25, 2020 · 0 comments · Fixed by #703
Assignees
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.

Comments

@raandree
Copy link
Contributor

Details of the scenario you tried and the problem that is occurring

When trying to install or uninstall a software package using xPackage and providing a file hash, this error is thrown:

PowerShell DSC resource DSC_xPackageResource  failed to execute Set-TargetResource functionality with error message: The parameter "Hash" is 
declared in parameter-set "__AllParameterSets" multiple times. 
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : localhost

Verbose logs showing the problem

No useful verbose information

Suggested solution to the issue

The attribute 'Parameter' was added twice to parameter 'Hash' in 'Assert-FileHashValid'.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

NA

The operating system the target node is running

OS independent

Version and build of PowerShell the target node is running

NA

Version of the DSC module that was used

9.1.0

raandree added a commit to raandree/xPSDesiredStateConfiguration that referenced this issue Nov 25, 2020
@PlagueHO PlagueHO added bug The issue is a bug. in progress The issue is being actively worked on by someone. labels Nov 25, 2020
PlagueHO pushed a commit that referenced this issue Dec 6, 2020
* Fixes #702

* Updated changelog

* Fixed changelog

* Style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants