mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
parted: fix regex for version match and partition size output (#1695)
* Fix 2 regex in parted related to parted version string and to parsing partition size output. * Added changelog fragment. * Updated changelog as per recommendation. * Fix the regex matching the parted version. The space character at the end of the string may or may not be always present * provided sample version output and corrected regex to match * add/correct changelog fragment * split parted_version function to allow creating a test unit * test unit for parted version info * ansible-test sanity fixes * review fix * Update changelogs/fragments/1695-parted-updatedregex.yaml Co-authored-by: Felix Fontein <felix@fontein.de> * comment fixes * better function name * Update plugins/modules/system/parted.py Co-authored-by: Felix Fontein <felix@fontein.de> * comment fixes Co-authored-by: Claude Robitaille <claude@cbcr.me> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
ae8edc02e1
commit
43da5b88db
3 changed files with 66 additions and 14 deletions
4
changelogs/fragments/1695-parted-updatedregex.yaml
Normal file
4
changelogs/fragments/1695-parted-updatedregex.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
bugfixes:
|
||||
- parted - change the regex that decodes the partition size to better support different formats that parted uses.
|
||||
Change the regex that validates parted's version string
|
||||
(https://github.com/ansible-collections/community.general/pull/1695).
|
Loading…
Add table
Add a link
Reference in a new issue