1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

toolib: skip when there is no vg and error_vg

We must skip even if the skip would be suggesting otherwise
if there is no vg and no error_vg as there is nothing to process.
This commit is contained in:
Zdenek Kabelac 2024-04-09 17:27:12 +02:00
parent cd9b2b32aa
commit f27388b5d8

View File

@ -4560,7 +4560,7 @@ static int _process_pvs_in_vgs(struct cmd_context *cmd, uint32_t read_flags,
stack;
ret_max = ECMD_FAILED;
report_log_ret_code(ret_max);
if (!skip)
if (!skip || (!vg && !error_vg))
goto endvg;
/* Drop through to eliminate unmpermitted PVs from the devices list */
}