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,