diff --git a/port.py b/port.py index c3a1b8f..27c2953 100644 --- a/port.py +++ b/port.py @@ -1016,7 +1016,7 @@ class Portainer: self.restart_srv(service_id, pull) #print(f"Service {service_dict[service_id]:<{longest}} : updated") self.gotify_message(f"Service {service_dict[service_id]} updated") - print(ok) + print(f"{ok} updated") else: print(f"\r\033[4m{service_dict[service_id]:<{longest}}\033[0m ", end="", flush=True) #print(f"\033[4m{service_dict[service_id]:<{longest}} {err}\033[0m") diff --git a/portainer.py b/portainer.py index 35ff44d..ff9f331 100755 --- a/portainer.py +++ b/portainer.py @@ -621,6 +621,15 @@ if __name__ == "__main__": sys.exit() if args.action == "stop_containers": + # TODO: does not work + args = prompt_missing_args( + args, + cur_config, + [ + ("site", "Site"), + ("endpoint_id", "Endpoint ID"), + ], + ) if por.all_data["endpoints_status"][args.endpoint_id] != 1: print(f"Endpoint {por.get_endpoint_name(args.endpoint_id)} is offline") sys.exit()