diff --git a/port.py b/port.py index 1b4f344..61e9237 100644 --- a/port.py +++ b/port.py @@ -576,9 +576,9 @@ class Portainer: print(f"Error stoping stack: {e}") return [] if "Id" in json.loads(resp): - print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : started") + print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : started") else: - print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : {json.loads(resp)['message']}") + print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : {json.loads(resp)['message']}") return True def stop_stack(self,stack,endpoint_id): print(f"Stopping stack {stack}") @@ -599,9 +599,9 @@ class Portainer: print(f"Error stoping stack: {e}") return [] if "Id" in json.loads(resp): - print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : stopped") + print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : stopped") else: - print(f"Stack {self.stacks_all[self.endpoint_id]["by_id"][stack]} : {json.loads(resp)['message']}") + print(f"Stack {self.stacks_all[self.endpoint_id]['by_id'][stack]} : {json.loads(resp)['message']}") return True def delete_stack(self, endpoint_id=None, stack=None, timeout=None):