mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-01-31 20:02:47 +00:00
Merge pull request #468 from shubhamgoel4aug/patch-1
Fixed bug in script
This commit is contained in:
commit
089bc3b2d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user