From 285a165eba191a827de81060ca8d93d02bb9779d Mon Sep 17 00:00:00 2001 From: Shubham Goel Date: Mon, 24 Feb 2020 10:21:58 +0530 Subject: [PATCH] Fixed bug in script There was an extra parenthesis at the end of line no 23 --- tools/collector-generator/New-Collector.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/collector-generator/New-Collector.ps1 b/tools/collector-generator/New-Collector.ps1 index 687b852d..d926d277 100644 --- a/tools/collector-generator/New-Collector.ps1 +++ b/tools/collector-generator/New-Collector.ps1 @@ -20,7 +20,7 @@ else { $members = $wmiObject ` | Get-Member -MemberType Properties ` | Where-Object { $_.Definition -Match '^u?int' -and $_.Name -NotMatch '_' } ` - | Select-Object Name, @{Name="Type";Expression={$_.Definition.Split(" ")[0]}}) + | Select-Object Name, @{Name="Type";Expression={$_.Definition.Split(" ")[0]}} $input = @{ "Class"=$Class; "CollectorName"=$CollectorName;