Repository: ansible-collections/community.general

Issue:
lvol with thinpool option ignores check mode
### Summary

When I run ansible in check mode lvol module ignores it and creates lv. This only happens if thinpool option is specified (thinpool already exists). 

### Issue Type

Bug Report

### Component Name

lvol

### Ansible Version

```console (paste below)
ansible==4.2.0
ansible-core==2.11.2
```


### Configuration

_No response_

### OS / Environment

target os: ubuntu 20.04 (focal)

### Steps to Reproduce

<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)
- hosts:
    - localhost
  tasks:
    - lvol:
        vg: vg0
        lv: test
        size: 1g
        thinpool: tpool
```

```console
ansible-playbook test.yml --check 
```

### Expected Results

I expect lvol to respect "check mode".

### Actual Results

First run:
```console (paste below)
PLAY [localhost] *******************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************
ok: [localhost]

TASK [lvol] ***********************************************************************************************************************************
changed: [localhost]

PLAY RECAP ************************************************************************************************************************************
localhost                   : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
```
Second run:
```console
PLAY [localhost] *******************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************
ok: [localhost]

TASK [lvol] ***********************************************************************************************************************************
ok: [localhost]

PLAY RECAP ************************************************************************************************************************************
localhost                   : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct


Discussion:
Files identified in the description:
* [`plugins/modules/system/lvol.py`](https://github.com/ansible-collections/community.general/blob/master/plugins/modules/system/lvol.py)

If these files are inaccurate, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->
cc @abulimov @jhoekx @unkaputtbar112 @zigaSRC
[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
<!--- boilerplate: notify --->

Resolving patch:
diff --git a/plugins/modules/system/lvol.py b/plugins/modules/system/lvol.py
--- a/plugins/modules/system/lvol.py
+++ b/plugins/modules/system/lvol.py
@@ -471,9 +471,9 @@ def main():
                 if size_opt == 'l':
                     module.fail_json(changed=False, msg="Thin volume sizing with percentage not supported.")
                 size_opt = 'V'
-                cmd = "%s %s -n %s -%s %s%s %s -T %s/%s" % (lvcreate_cmd, yesopt, lv, size_opt, size, size_unit, opts, vg, thinpool)
+                cmd = "%s %s %s -n %s -%s %s%s %s -T %s/%s" % (lvcreate_cmd, test_opt, yesopt, lv, size_opt, size, size_unit, opts, vg, thinpool)
             elif thinpool and not lv:
-                cmd = "%s %s -%s %s%s %s -T %s/%s" % (lvcreate_cmd, yesopt, size_opt, size, size_unit, opts, vg, thinpool)
+                cmd = "%s %s %s -%s %s%s %s -T %s/%s" % (lvcreate_cmd, test_opt, yesopt, size_opt, size, size_unit, opts, vg, thinpool)
             else:
                 cmd = "%s %s %s -n %s -%s %s%s %s %s %s" % (lvcreate_cmd, test_opt, yesopt, lv, size_opt, size, size_unit, opts, vg, pvs)
             rc, dummy, err = module.run_command(cmd)


Test patch: