Skip to content

Commit

Permalink
Nets: add state
Browse files Browse the repository at this point in the history
Signed-off-by: matthias.gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Sep 29, 2023
1 parent c360a0a commit 62cda15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osc_tui/vpcsGrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class vpcsGrid(selectableGrid.SelectableGrid):
def __init__(self, screen, *args, **keywords):
super().__init__(screen, *args, **keywords)
self.col_titles = ["Id", "CIDR", "DHCP Options Id"]
self.col_titles = ["Id", "CIDR", "DHCP Options Id", "State"]

def on_selection(line):
popup.editVpcs(self.form, line)
Expand All @@ -19,11 +19,11 @@ def refresh_call(self, name_filter=None):

def refresh(self):
groups = main.do_search(self.data.copy(), ["NetId", "IpRange",
"DhcpOptionsSetId"])
"DhcpOptionsSetId", "State"])
values = list()
for g in groups:
values.append([g['NetId'],
g['IpRange'], g['DhcpOptionsSetId']])
values.append([g['NetId'], g['IpRange'], g['DhcpOptionsSetId'],
g["State"]])
self.values = values


Expand Down

0 comments on commit 62cda15

Please sign in to comment.