From de2010c69044db0abebc718d520523e0cdebc576 Mon Sep 17 00:00:00 2001 From: yuanyu Date: Tue, 22 Feb 2022 09:36:11 +0800 Subject: [PATCH] Optimize disk status --- delfin/drivers/hpe/hpe_3par/consts.py | 2 +- delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/delfin/drivers/hpe/hpe_3par/consts.py b/delfin/drivers/hpe/hpe_3par/consts.py index 63167bb78..895573929 100644 --- a/delfin/drivers/hpe/hpe_3par/consts.py +++ b/delfin/drivers/hpe/hpe_3par/consts.py @@ -673,7 +673,7 @@ } DISK_STATUS_MAP = { 'NORMAL': constants.DiskStatus.NORMAL, - 'DEGRADED': constants.DiskStatus.ABNORMAL, + 'DEGRADED': constants.DiskStatus.DEGRADED, 'FAILED': constants.DiskStatus.ABNORMAL, 'NEW': constants.DiskStatus.ABNORMAL } diff --git a/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py b/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py index e9466963d..700fc1462 100644 --- a/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py +++ b/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py @@ -1257,7 +1257,7 @@ def __init__(self): 'firmware': 'FW_Rev111', 'speed': 15000, 'capacity': 599684808704, - 'status': 'abnormal', + 'status': 'degraded', 'physical_type': 'fc', 'logical_type': None, 'health_score': None,