mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* fix alternatives parsing when they are part of a group
* add changelog fragment
Co-authored-by: Guillaume Rousse <guillaume.rousse@renater.fr>
(cherry picked from commit a675afcba9
)
Co-authored-by: Guillaume Rousse <guillomovitch@gmail.com>
This commit is contained in:
parent
7e6e8f7749
commit
c734e7c2e5
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/3976-fix-alternatives-parsing.yml
Normal file
2
changelogs/fragments/3976-fix-alternatives-parsing.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- alternatives - fix output parsing for alternatives groups (https://github.com/ansible-collections/community.general/pull/3976).
|
|
@ -104,7 +104,7 @@ def main():
|
|||
# available alternatives
|
||||
current_path_regex = re.compile(r'^\s*link currently points to (.*)$',
|
||||
re.MULTILINE)
|
||||
alternative_regex = re.compile(r'^(\/.*)\s-\spriority', re.MULTILINE)
|
||||
alternative_regex = re.compile(r'^(\/.*)\s-\s(?:family\s\S+\s)?priority', re.MULTILINE)
|
||||
|
||||
match = current_path_regex.search(display_output)
|
||||
if match:
|
||||
|
|
Loading…
Reference in a new issue