Closed tabraham closed 1 year ago
Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/resource-agents/job/resource-agents-pipeline/job/PR-1879/1/input
Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/resource-agents/job/resource-agents-pipeline/job/PR-1879/2/input
Thanks.
Parsing mount command output in list_mounts() results in a sed error: sed: -e expression #1, char 51: invalid reference \5 on `s' command's RHS
This results in a list_mounts not returning any mounts.
The error is caused due to match_string only providing three capture groups, while the replacement string references a non-existing 5th capture group.
Also, the output for this case differs from the case where the mount list is parsed from /proc/mounts or /etc/mtab as it would include the mount options in the output.
Fixes: a8051cf9e21d ("Filesystem: Support whitespace in device or directory name")