From 4eb496c1eabc39172c3feb34b4aaf6bd5df76b66 Mon Sep 17 00:00:00 2001 From: Peter Siegel Date: Sun, 2 Feb 2025 01:55:59 +0100 Subject: [PATCH] fix: add put command --- plugins/connection/lxd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/connection/lxd.py b/plugins/connection/lxd.py index 774bb8c6d7..94cf7a8564 100644 --- a/plugins/connection/lxd.py +++ b/plugins/connection/lxd.py @@ -174,11 +174,13 @@ class Connection(ConnectionBase): if self.get_option("project"): local_cmd.extend(["--project", self.get_option("project")]) local_cmd.extend([ - "file", "push", + "file", "push", "--gid", "1000", "--uid", "1000", in_path, f"{self.get_option('remote')}:{self._host()}/{out_path}" ]) + self._display.vvvvv(f"PUT COMMAND {local_cmd}", host=self._host()) + local_cmd = [to_bytes(i, errors='surrogate_or_strict') for i in local_cmd] process = Popen(local_cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)