mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Instantiate psobject directly
This commit is contained in:
@@ -8,6 +8,6 @@ If ($args.Length -gt 0)
|
||||
|
||||
$data = 'FIXME';
|
||||
|
||||
$result = '{}' | ConvertFrom-Json;
|
||||
$result = New-Object psobject;
|
||||
$result | Add-Member -MemberType NoteProperty -Name fixme -Value $data;
|
||||
echo $result | ConvertTo-Json;
|
||||
|
||||
Reference in New Issue
Block a user