From 2eba5833edc177ce97375134ea4cc8e28354b44b Mon Sep 17 00:00:00 2001 From: Justin Barclay Date: Tue, 9 Jul 2024 10:56:13 -0700 Subject: [PATCH] chore: Rename custom field to be consistent with the api --- unix/src/machine_stats/__init__.py | 2 +- windows/server_stats.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/src/machine_stats/__init__.py b/unix/src/machine_stats/__init__.py index 0e1b64c..6a7a4b8 100644 --- a/unix/src/machine_stats/__init__.py +++ b/unix/src/machine_stats/__init__.py @@ -231,7 +231,7 @@ def v2_runner_on_ok(self, result): "storage_used_gb": storage_used_gb(facts), "cpu_count": cpu_count(facts), "custom_fields": { - "CPU_LogicalProcessors": cpu_logical_processors(facts) + "cpu_logical_processors": cpu_logical_processors(facts) }, "operating_system": facts["ansible_distribution"], "operating_system_version": facts["ansible_distribution_version"], diff --git a/windows/server_stats.ps1 b/windows/server_stats.ps1 index 502fd00..35690c4 100644 --- a/windows/server_stats.ps1 +++ b/windows/server_stats.ps1 @@ -168,7 +168,7 @@ $ServerStats = { CPU_Manufacturer = $cpu.Manufacturer CPU_L2CacheSize = $cpu.L2CacheSize CPU_L3CacheSize = $cpu.L3CacheSize - CPU_LogicalProcessors = $cpu.NumberOfLogicalProcessors + cpu_logical_processors = $cpu.NumberOfLogicalProcessors CPU_SocketDesignation = $cpu.SocketDesignation TotalVisible_Memory_GB = $OSTotalVisibleMemory TotalVirtual_Memory_GB = $OSTotalVirtualMemory