diff --git a/osc_tui/createLoadbalancer.py b/osc_tui/createLoadbalancer.py index 06447a2..d4ceeab 100644 --- a/osc_tui/createLoadbalancer.py +++ b/osc_tui/createLoadbalancer.py @@ -37,7 +37,7 @@ def back(): def create(): name = NAME.get_value() protocol = PROTOCOL.get_values()[PROTOCOL.get_value()] - res = main.GATEWAY.CreateLoadBalancer( + main.GATEWAY.CreateLoadBalancer( form=self, SubregionNames=[SUBREGION.get_values()[SUBREGION.get_value()]], Listeners=[{ diff --git a/osc_tui/createVpcs.py b/osc_tui/createVpcs.py index 476dd9f..c9eec29 100644 --- a/osc_tui/createVpcs.py +++ b/osc_tui/createVpcs.py @@ -1,7 +1,6 @@ import oscscreen from osc_tui import main from osc_tui import popup -import os from osc_tui import preloader # CIDR input for vpcs diff --git a/osc_tui/main.py b/osc_tui/main.py index a7518e0..42c2149 100644 --- a/osc_tui/main.py +++ b/osc_tui/main.py @@ -41,7 +41,7 @@ def readVms(): reply = GATEWAY.ReadVms() - if reply == None: + if reply is None: return None return reply["Vms"] diff --git a/osc_tui/popup.py b/osc_tui/popup.py index b0038f7..e0db8b7 100644 --- a/osc_tui/popup.py +++ b/osc_tui/popup.py @@ -603,7 +603,7 @@ def delete_cb(): def editSnapshot(form, snapshot, form_color='STANDOUT'): id = snapshot[0] - description = snapshot[1] + # description = snapshot[1] size = snapshot[2] volume_id = snapshot[3] @@ -798,7 +798,6 @@ def notify(message, title="Loading", form_color='STANDOUT', F = PendingPopup(name=title, color=form_color) F.preserve_selected_widget = True mlw = F.add(wgmultiline.Pager,) - mlw_width = mlw.width - 1 message = message.split('\n') mlw.values = message F.display() @@ -854,7 +853,7 @@ def capsule(): def editKeypair(form, line, form_color='STANDOUT'): name = line[0] - fingerprint = line[1] + #fingerprint = line[1] F = displayPopup(name="Keypair: {}".format(name)) F.preserve_selected_widget = True diff --git a/osc_tui/selectableGrid.py b/osc_tui/selectableGrid.py index b93c016..590a17c 100644 --- a/osc_tui/selectableGrid.py +++ b/osc_tui/selectableGrid.py @@ -37,7 +37,7 @@ def h_refresh(self, inpt, name_filter=None, skip_call=False): if skip_call == False: tries = 0 data = self.refresh_call(name_filter=name_filter) - while data == None and tries < 10: + while data is None and tries < 10: time.sleep(0.5) data = self.refresh_call(name_filter=name_filter) tries += 1