mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-06 22:24:23 -07:00
fix: add put command
This commit is contained in:
parent
4f097d90be
commit
4eb496c1ea
1 changed files with 3 additions and 1 deletions
|
@ -174,11 +174,13 @@ class Connection(ConnectionBase):
|
||||||
if self.get_option("project"):
|
if self.get_option("project"):
|
||||||
local_cmd.extend(["--project", self.get_option("project")])
|
local_cmd.extend(["--project", self.get_option("project")])
|
||||||
local_cmd.extend([
|
local_cmd.extend([
|
||||||
"file", "push",
|
"file", "push", "--gid", "1000", "--uid", "1000",
|
||||||
in_path,
|
in_path,
|
||||||
f"{self.get_option('remote')}:{self._host()}/{out_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]
|
local_cmd = [to_bytes(i, errors='surrogate_or_strict') for i in local_cmd]
|
||||||
|
|
||||||
process = Popen(local_cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
process = Popen(local_cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue