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
Description of the issue
When running Invoke-PSRule with a .jsonc rule file, if the file is empty it hangs. Works fine when an empty array exists in the file.
Invoke-PSRule
.jsonc
To Reproduce
Steps to reproduce the issue:
$testObject = [PSCustomObject]@{ Name = 'TestObject1' Value = 1 } $jsonFilePath = ".\FromFile.Rule.jsonc" # Empty file $testObject | Invoke-PSRule -Path $jsonFilePath # Hangs
Expected behaviour
Should not hang.
Error output
Module in use and version:
Captured output from $PSVersionTable:
$PSVersionTable
Name Value ---- ----- PSVersion 7.2.1 PSEdition Core GitCommitId 7.2.1 OS Microsoft Windows 10.0.22000 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
Additional context
The text was updated successfully, but these errors were encountered:
ArmaanMcleod
Successfully merging a pull request may close this issue.
Description of the issue
When running
Invoke-PSRule
with a.jsonc
rule file, if the file is empty it hangs. Works fine when an empty array exists in the file.To Reproduce
Steps to reproduce the issue:
Expected behaviour
Should not hang.
Error output
Module in use and version:
Captured output from
$PSVersionTable
:Additional context
The text was updated successfully, but these errors were encountered: