Skip to content

Commit

Permalink
fix class name for convention
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-mal committed Aug 22, 2023
1 parent 262e1d2 commit e6909e8
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions osc_tui/createVpcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@

import sys

def print_error(*args, **kwargs):
error_log_file = "error_log.txt"
with open(error_log_file, "a") as error_log:
print(*args, file=sys.stderr, **kwargs)
print(*args, file=error_log, **kwargs)

class createVpcs(oscscreen.FormBaseNew):
class CreateVpcs(oscscreen.FormBaseNew):
def __init__(self, *args, **keywords):
super().__init__(*args, **keywords)

Expand Down Expand Up @@ -47,7 +41,7 @@ def create():
IpRange=cidr_value,
)
else:
print_error('CIDR value is missing')
popup.errorPopup("CIDR is missing.")
back()

global CIDR
Expand All @@ -70,7 +64,7 @@ def reload(self):
main.kill_threads()
self.parentApp.addForm(
"CREATE_SUBNET",
CreateSubnet,
createSubnet,
name="osc-tui")
self.parentApp.switchForm("CREATE_SUBNET")

Expand All @@ -93,7 +87,7 @@ def create():
SubregionName=subregion_value,
)
else:
print_error('CIDR value or Subregion is missing')
popup.errorPopup("CIDR is missing.")
back()

global CIDR
Expand Down

0 comments on commit e6909e8

Please sign in to comment.