From 6081c44d4c06adb2b6db47b613977abf1abb6a9f Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 23 Dec 2025 11:40:49 +0100 Subject: [PATCH] build --- port.py | 2 +- portainer.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/port.py b/port.py index 6a9fc44..388021c 100644 --- a/port.py +++ b/port.py @@ -21,7 +21,7 @@ from prompt_toolkit.shortcuts import radiolist_dialog logger = logging.getLogger(__name__) -class Portainer: +class PortainerApi: """ Simple wrapper around the module-level Portainer helper functions. Instantiate with base_url and optional token/timeout and call methods diff --git a/portainer.py b/portainer.py index d81c915..5c07de1 100755 --- a/portainer.py +++ b/portainer.py @@ -11,11 +11,9 @@ import signal import sys import json import argparse -import tty -import termios import hvac from tabulate import tabulate -from port import Portainer +from port import PortainerApi from prompt_toolkit import prompt from prompt_toolkit.completion import WordCompleter from prompt_toolkit.shortcuts import checkboxlist_dialog @@ -427,7 +425,7 @@ if __name__ == "__main__": os.system("cls" if os.name == "nt" else "clear") # Example: list endpoints - por = Portainer(cur_config["PORTAINER_SITE"], args) + por = PortainerApi(cur_config["PORTAINER_SITE"], args) por.set_defaults(cur_config) if args.debug: por._debug = True