From 9822adb0ae31471e32f678f909dca774609c02d3 Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Tue, 26 Nov 2024 21:11:47 +0100 Subject: [PATCH] opt --- lib/check/storage.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/check/storage.py b/lib/check/storage.py index b17659c..d5a12cb 100644 --- a/lib/check/storage.py +++ b/lib/check/storage.py @@ -38,12 +38,12 @@ async def get_luns(asset: Asset, check_config: dict, token: str): 'sparse': lun['sparse'], # bool 'volsize': int(lun['volsize']), # int 'volblocksize': int(lun['volblocksize']), # int - 'usage_available': as_int(usage, 'available'), # int - 'usage_total': as_int(usage, 'total'), # int - 'usage_data': as_int(usage, 'data'), # int - 'usage_compressratio': as_float(usage, 'compressratio'), # float - 'usage_snapshots': as_float(usage, 'snapshots'), # float - 'usage_loading': usage.get('loading'), # bool + 'usage_available': as_int(usage, 'available'), # int? + 'usage_total': as_int(usage, 'total'), # int? + 'usage_data': as_int(usage, 'data'), # int? + 'usage_compressratio': as_float(usage, 'compressratio'), # float? + 'usage_snapshots': as_float(usage, 'snapshots'), # float? + 'usage_loading': usage.get('loading'), # bool? 'status': lun.get('status'), # str 'stmfguid': stmfguid, # str })