Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

None check #103

Merged
merged 6 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion import_export_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_version(client):
if sys.version_info < (3, 7):
raise Exception("Min Python version required is 3.7")

arg_parser = argparse.ArgumentParser(description="R80.X Policy Package Export/Import Tool, V6.1.0")
arg_parser = argparse.ArgumentParser(description="R80.X Policy Package Export/Import Tool, V6.2.0")
args = process_arguments(arg_parser)
if args.force:
args.unsafe_auto_accept = True
Expand Down
7 changes: 4 additions & 3 deletions menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ def __init__(self, args):
self.build()

def display(self):
Menu.menu_print(self.title, 1)
for i in range(1, len(self.options)):
self.menu_print(str(i) + ". " + self.options[i - 1], 0)
if self.title:
Menu.menu_print(self.title, 1)
if self.options:
for i in range(1, len(self.options)):
self.menu_print(str(i) + ". " + self.options[i - 1], 0)
self.menu_print(str(len(self.options)) + ". " + self.options[len(self.options) - 1], 1)
self.menu_print("99. " + self.last_option, 0)
self.handle_input()
Expand Down
Loading