1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins
Jonathan Kamens c7fa11d576
snap: Only treat --- as an info separator when it's preceded by newline (#7046)
* Only treat `---` as an info separator when it's preceded by newline

The code for splitting the output of `snap info` for multiple snaps
can't assume that `---` separates snaps any time it appears in the
output; it needs to treat that as the separator only when it's at the
start of a line. Otherwise it breaks if any snap uses `---` in its
description text, which, e.g., the `bw` snap does as of the date of
this commit.

Fixes #7045.

* Add changelog fragment

* Add a comment explaining why \n is necessary before ---

* Update changelogs/fragments/7046-snap-newline-before-separator.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Jonathan Kamens <jik@jik5.kamens.us>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2023-08-04 07:40:40 +02:00
..
action Shutdown systemd without sysv (#6171) 2023-05-09 20:10:09 +02:00
become machinectl become plugin: mark as require_tty (#6935) 2023-07-15 12:53:59 +02:00
cache Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
callback Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
connection chroot: added an example (#6824) 2023-07-08 10:21:13 +02:00
doc_fragments proxmox module utils: better error msg when token fails with old proxmoxer (#6839) 2023-07-03 22:07:05 +02:00
filter Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
inventory cobbler inventory plugin: Convert unicode to str (#6923) 2023-07-16 10:58:30 +02:00
lookup 📝 Add missing commas to documentation (#6955) 2023-07-16 12:51:21 +02:00
module_utils Rundeck - fix TypeError on 404 api response (#6983) 2023-07-31 08:37:32 +02:00
modules snap: Only treat --- as an info separator when it's preceded by newline (#7046) 2023-08-04 07:40:40 +02:00
test Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00