xfs_quota: command args as list rather than string (#10609)

This commit is contained in:
Alexei Znamensky
2025-08-10 23:34:30 +12:00
committed by GitHub
parent 5d3662b23c
commit 9fc5d2ec4d
2 changed files with 4 additions and 2 deletions

View File

@@ -457,8 +457,8 @@ def quota_report(module, xfs_quota_bin, mountpoint, name, quota_type, used_type)
def exec_quota(module, xfs_quota_bin, cmd, mountpoint):
cmd = [xfs_quota_bin, "-x", "-c"] + [cmd, mountpoint]
(rc, stdout, stderr) = module.run_command(cmd, use_unsafe_shell=True)
cmd = [xfs_quota_bin, "-x", "-c", cmd, mountpoint]
(rc, stdout, stderr) = module.run_command(cmd)
if (
"XFS_GETQUOTA: Operation not permitted" in stderr.split("\n")
or rc == 1