mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: rename vshCommandOptString to vshCommandOptStringQuiet
This function does not set an error. Make it obvious in its name to discourage its usage without reporting an error in the caller.
This commit is contained in:
@@ -222,7 +222,7 @@ cmdVolCreateAs(vshControl *ctl, const vshCmd *cmd)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (vshCommandOptString(ctl, cmd, "allocation", &allocationStr) > 0 &&
|
||||
if (vshCommandOptStringQuiet(ctl, cmd, "allocation", &allocationStr) > 0 &&
|
||||
virshVolSize(allocationStr, &allocation) < 0) {
|
||||
vshError(ctl, _("Malformed size %s"), allocationStr);
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user