diff --git a/port.py b/port.py index 8fda28a..9c926ee 100644 --- a/port.py +++ b/port.py @@ -232,7 +232,7 @@ class Portainer: def get_stacks(self, endpoint_id="all", timeout=20): '''Get a list of stacks for a specific endpoint or all endpoints.''' if endpoint_id != "all": - endpoint_id = self.get_endpoint_id(endpoint_id) + endpoint_id = self.get_endpoint_id() path = "/stacks" stcks = [] stacks = self._api_get(path, timeout=timeout) @@ -603,7 +603,7 @@ class Portainer: p = "standalone" env_path = f"{self.repo_dir}/{stack}/.env" # input(swarm_id) - self.endpoint_id = self.get_endpoint_id(endpoint) + self.endpoint_id = self.get_endpoint_id() if os.path.exists(self.repo_dir): shutil.rmtree(self.repo_dir) else: diff --git a/portainer.py b/portainer.py index 05b9d87..24fae60 100755 --- a/portainer.py +++ b/portainer.py @@ -475,6 +475,8 @@ if __name__ == "__main__": if args.action == "create_stack": por.action = "create_stack" + print(cur_config) + print(args) args = prompt_missing_args( args, cur_config,