incus connection: fix regex (#11347)

* incus connection: fix regex

* updates

* Apply suggestions from code review

* expand regexp capture

* add changelog frag

* Update plugins/connection/incus.py

* split arguments after command option

* Update plugins/connection/incus.py

* remove *() and split from the last command

* add tests, make small adjustments

* remove redundant strip()

* add more tests

* adjusted changelog fragment
This commit is contained in:
Alexei Znamensky
2026-01-10 09:07:31 +13:00
committed by GitHub
parent 91efa27cb9
commit e790b95067
3 changed files with 152 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
bugfixes:
- >
incus connection plugin - fix parsing of commands for Windows, enforcing a ``\`` after the drive letter and colon symbol
(https://github.com/ansible-collections/community.general/pull/11347).
minor_changes:
- incus connection plugin - simplify regular expression matching commands (https://github.com/ansible-collections/community.general/pull/11347).