mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-29 13:03:22 -07:00
parted: join command list for fail_json message (#10823)
* parted: join command list for fail_json message * add changelog frag
This commit is contained in:
parent
0911db457e
commit
562d2ae5b1
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/10823-parted-fail-json-command.yml
Normal file
2
changelogs/fragments/10823-parted-fail-json-command.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- parted - variable is a list, not text (https://github.com/ansible-collections/community.general/pull/10823, https://github.com/ansible-collections/community.general/issues/10817).
|
|
@ -572,7 +572,7 @@ def parted(script, device, align):
|
|||
|
||||
if rc != 0:
|
||||
module.fail_json(
|
||||
msg="Error while running parted script: %s" % command.strip(),
|
||||
msg="Error while running parted script: %s" % " ".join(command).strip(),
|
||||
rc=rc, out=out, err=err
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue