From 48f00baea2c7b4b80e04d47707c195d74e31f841 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Tue, 11 Dec 2018 11:23:56 -0600 Subject: [PATCH] lvmdbusd: Update table lookup for health lv_attr (cherry picked from commit a6cba2d0a08e77a7e5178a2fac605863848a8e2e) --- daemons/lvmdbusd/lv.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/daemons/lvmdbusd/lv.py b/daemons/lvmdbusd/lv.py index a80675fa4..1b66af595 100644 --- a/daemons/lvmdbusd/lv.py +++ b/daemons/lvmdbusd/lv.py @@ -369,9 +369,17 @@ class LvCommon(AutomatedProperties): @property def Health(self): - type_map = {'p': 'partial', 'r': 'refresh', - 'm': 'mismatches', 'w': 'writemostly', - 'X': 'X unknown', '-': 'Unspecified'} + type_map = {'p': 'partial', + 'r': 'refresh needed', + 'm': 'mismatches', + 'w': 'writemostly', + 'X': 'unknown', + '-': 'unspecified', + 's': 'reshaping', + 'F': 'failed', + 'D': 'Data space', + 'R': 'Remove', + 'M': 'Metadata'} return self.attr_struct(8, type_map) @property