ironmansoftware / universal-automation

Universal Automation is the PowerShell-first automation platform.
https://ironmansoftware.com/universal-automation/
MIT License
24 stars 4 forks source link

Nulls being returned in Get-UAJobOutput #57

Closed Chirishman closed 4 years ago

Chirishman commented 4 years ago

Describe the Issue

In certain scenarios, such as when a hashtable is written to the pipeline or the only output is a write-verbose a null information message record is output.

Multiple null records are returned around the hashtable, reflecting how console output would format it.

To Reproduce

  1. Replace the Write-Host call in the provided getting started example with a hashtable literal
  2. Run Get-UAJobOutput to retrieve the result

Expected behavior

Do not return null outputs or at least do not return multiple consecutive null outputs.

Screenshots

Script Sample

Set-UAScript -Id 1 -content {start-sleep -Seconds 4; @{Hello='World'}}

Invoke-UAScript 1

Version Information

adamdriscoll commented 4 years ago

Resolved in tonight's build.