From a9729ecc042a5c30eb1b8cdbd373340cb012ab5c Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 25 Mar 2024 11:42:03 +0100 Subject: [PATCH] fix metric --- lib/check/disk.py | 2 ++ lib/version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/check/disk.py b/lib/check/disk.py index f8331ee..e3daa32 100644 --- a/lib/check/disk.py +++ b/lib/check/disk.py @@ -13,4 +13,6 @@ async def check_disk( check_config: dict): state = await get_data(asset, asset_config, check_config, QUERIES) + for disk in state.get('diskEntry', []): + disk['diskCapacity'] = int(disk['diskCapacity']) return state diff --git a/lib/version.py b/lib/version.py index a06f920..14a5c96 100644 --- a/lib/version.py +++ b/lib/version.py @@ -1,4 +1,4 @@ # Version string. Examples: # '3.0.0' # '3.0.0-alpha9' -__version__ = '3.0.0-alpha1' +__version__ = '3.0.0-alpha2'