mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update lxd connection to use all documented vars for options (#3798)
* Update lxd connection to use documented vars * Add a changelog fragment * Add clarification to changelog description * Shorten changelog fragment description
This commit is contained in:
parent
90c0980e8d
commit
8f6866dba6
2 changed files with 8 additions and 4 deletions
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- lxd connection plugin - make sure that ``ansible_lxd_host``, ``ansible_executable``, and
|
||||||
|
``ansible_lxd_executable`` work (https://github.com/ansible-collections/community.general/pull/3798).
|
|
@ -89,9 +89,9 @@ class Connection(ConnectionBase):
|
||||||
local_cmd.extend(["--project", self.get_option("project")])
|
local_cmd.extend(["--project", self.get_option("project")])
|
||||||
local_cmd.extend([
|
local_cmd.extend([
|
||||||
"exec",
|
"exec",
|
||||||
"%s:%s" % (self.get_option("remote"), self._host),
|
"%s:%s" % (self.get_option("remote"), self.get_option("remote_addr")),
|
||||||
"--",
|
"--",
|
||||||
self._play_context.executable, "-c", cmd
|
self.get_option("executable"), "-c", cmd
|
||||||
])
|
])
|
||||||
|
|
||||||
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]
|
||||||
|
@ -126,7 +126,7 @@ class Connection(ConnectionBase):
|
||||||
local_cmd.extend([
|
local_cmd.extend([
|
||||||
"file", "push",
|
"file", "push",
|
||||||
in_path,
|
in_path,
|
||||||
"%s:%s/%s" % (self.get_option("remote"), self._host, out_path)
|
"%s:%s/%s" % (self.get_option("remote"), self.get_option("remote_addr"), out_path)
|
||||||
])
|
])
|
||||||
|
|
||||||
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]
|
||||||
|
@ -145,7 +145,7 @@ class Connection(ConnectionBase):
|
||||||
local_cmd.extend(["--project", self.get_option("project")])
|
local_cmd.extend(["--project", self.get_option("project")])
|
||||||
local_cmd.extend([
|
local_cmd.extend([
|
||||||
"file", "pull",
|
"file", "pull",
|
||||||
"%s:%s/%s" % (self.get_option("remote"), self._host, in_path),
|
"%s:%s/%s" % (self.get_option("remote"), self.get_option("remote_addr"), in_path),
|
||||||
out_path
|
out_path
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue