diff --git a/osc_tui/volumesGrid.py b/osc_tui/volumesGrid.py index ca31e9b..15da568 100644 --- a/osc_tui/volumesGrid.py +++ b/osc_tui/volumesGrid.py @@ -10,6 +10,7 @@ def __init__(self, screen, *args, **keywords): self.col_titles = [ "Id", "Type", + "State", 'Size (Gb)', 'Subregion', 'Linked To', @@ -28,14 +29,14 @@ def refresh_call(self, name_filter=None): return groups['Volumes'] def refresh(self): - groups = main.do_search(self.data.copy(), ['VolumeId', 'VolumeType', + groups = main.do_search(self.data.copy(), ['VolumeId', 'VolumeType', 'State' 'Size', 'SubregionName', 'Iops']) values = list() for g in groups: VolLink = g["LinkedVolumes"] VmId = VolLink[0]["VmId"] if VolLink else "Unlinked" DName = VolLink[0]["DeviceName"] if VolLink else "No Dev Today" - values.append([g["VolumeId"], g["VolumeType"], + values.append([g["VolumeId"], g["VolumeType"], g["State"], g["Size"], g['SubregionName'], VmId, DName, g['Iops'] if 'Iops' in g else '??']) self.values = values