We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Expected behavior:
This should delete the newly created configuration.
Set-PSFConfig -FullName "test.test.test" -Value "Test" -AllowDelete Remove-PSFConfig -FullName "test.test.test"
But it fails with an internal error:
Write-PSFMessage : Value cannot be null. Parameter name: args At C:\Users\motz\OneDrive - Essence Solutions P S\Documents\WindowsPowerShell\Modules\PSFramework\1.0.19\PSFramework.ps m1:2250 char:21 + ... ($result) { Write-PSFMessage -Level InternalComment -String Configura ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-PSFMessage], ArgumentNullException + FullyQualifiedErrorId : System.ArgumentNullException,PSFramework.Commands.WritePSFMessageCommand
Digging into the module, it seems like inside the Remove-PSFConfig function there is an issue with this line:
Remove-PSFConfig function
psframework/PSFramework/functions/configuration/Remove-PSFConfig.ps1
Line 98 in dc8c54b
More specifically with the -StringValues $item.FullName part.
-StringValues $item.FullName
Changing it to -StringValues @($item.FullName) seems to fix the issue.
I'll create a PR with the suggested fix and then you can have a look at it.
The text was updated successfully, but these errors were encountered:
Fix array issue
c822cc1
Trying to fix issue PowershellFrameworkCollective#373
Bug found and fixed, will be resolved in the next release
Sorry, something went wrong.
Resolved since 1.0.33
No branches or pull requests
Expected behavior:
This should delete the newly created configuration.
But it fails with an internal error:
Digging into the module, it seems like inside the
Remove-PSFConfig function
there is an issue with this line:psframework/PSFramework/functions/configuration/Remove-PSFConfig.ps1
Line 98 in dc8c54b
More specifically with the
-StringValues $item.FullName
part.Changing it to -StringValues @($item.FullName) seems to fix the issue.
I'll create a PR with the suggested fix and then you can have a look at it.
The text was updated successfully, but these errors were encountered: