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:
parent
cd9b2b32aa
commit
f27388b5d8
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user