Open Duke1616 opened 1 year ago
Files identified in the description: None
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @abulimov @jhoekx @unkaputtbar112 @zigaSRC click here for bot help
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
20230228 still unworkable.
I try to change the code:
m = re.search(r"LVM version:\s+(\d+)\.(\d+)\.(\d+).*(\d{4}-\d{2}-\d{2})", out)
to:
m = re.search(r"LVM version:\s+(\d+)\.(\d+)\.(\d+)", out)
Jobs done.
@saitiger008 do you want to create a PR for that? If yes, please include a changelog fragment. Thanks!
20230228 still unworkable. I try to change the code:
m = re.search(r"LVM version:\s+(\d+)\.(\d+)\.(\d+).*(\d{4}-\d{2}-\d{2})", out)
to:m = re.search(r"LVM version:\s+(\d+)\.(\d+)\.(\d+)", out)
Jobs done.
I think this regex is better, add match anything with '.*'
m = re.search(r"LVM version:\s+(\d+)\.(\d+)\.(\d+).*", out)
Since the regular expression does not end with $
it ignores everything after the last (\d+)
. Adding .*
should make no difference.
Summary
error message:
lvm version message:
Trigger conditions
Through reading the source code, it is found that the lvm version cannot satisfy the regular expression
Issue Type
Bug Report
Component Name
plugins/modules/system/lvol.py
Ansible Version
Community.general Version
Configuration
OS / Environment
Linux version 4.19.90-24.4.v2101.ky10.x86_64
Steps to Reproduce
Expected Results
Allow parameter transfer to skip version verification
Actual Results
Code of Conduct