mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 11:22:47 +00:00
lxc_container: use LVM runners from _lvm module utils (#11920)
* lxc_container: use LVM runners from _lvm module utils Replace direct run_command calls for lvs, vgdisplay, lvdisplay, lvcreate, and lvremove with the shared CmdRunner-based runners from module_utils/_lvm.py. Switches from human-readable text parsing to machine-readable --noheadings/--nosuffix/--separator output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * lxc_container: add changelog fragment for PR 11920 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * generate run_info information for commands --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -179,7 +179,7 @@ def pvmove_runner(module: AnsibleModule, **kwargs) -> CmdRunner:
|
||||
def vgs_runner(module: AnsibleModule, **kwargs) -> CmdRunner:
|
||||
"""
|
||||
Runner for C(vgs). Used by: community.general.lvol, community.general.lvg,
|
||||
community.general.lvg_rename.
|
||||
community.general.lvg_rename, community.general.lxc_container.
|
||||
|
||||
Suggested arg_formats keys: noheadings nosuffix readonly units separator fields select vg
|
||||
"""
|
||||
@@ -341,7 +341,7 @@ def vgrename_runner(module: AnsibleModule, **kwargs) -> CmdRunner:
|
||||
|
||||
def lvs_runner(module: AnsibleModule, **kwargs) -> CmdRunner:
|
||||
"""
|
||||
Runner for C(lvs). Used by: community.general.lvol.
|
||||
Runner for C(lvs). Used by: community.general.lvol, community.general.lxc_container.
|
||||
|
||||
Suggested arg_formats keys: all noheadings nosuffix units separator fields select vg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user