mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 17:47:15 +03:00
virsh: fixed trivial comment and debug message in vshCommandOptVolBy function
This commit is contained in:
parent
74231267f8
commit
c09f663a47
@ -9464,17 +9464,19 @@ vshCommandOptVolBy(vshControl *ctl, const vshCmd *cmd,
|
||||
if (name)
|
||||
*name = n;
|
||||
|
||||
/* try it by PATH */
|
||||
/* try it by name */
|
||||
if (pool && (flag & VSH_BYNAME)) {
|
||||
vshDebug(ctl, 5, "%s: <%s> trying as vol UUID\n",
|
||||
vshDebug(ctl, 5, "%s: <%s> trying as vol name\n",
|
||||
cmd->def->name, optname);
|
||||
vol = virStorageVolLookupByName(pool, n);
|
||||
}
|
||||
/* try it by key */
|
||||
if (vol == NULL && (flag & VSH_BYUUID)) {
|
||||
vshDebug(ctl, 5, "%s: <%s> trying as vol key\n",
|
||||
cmd->def->name, optname);
|
||||
vol = virStorageVolLookupByKey(ctl->conn, n);
|
||||
}
|
||||
/* try it by path */
|
||||
if (vol == NULL && (flag & VSH_BYUUID)) {
|
||||
vshDebug(ctl, 5, "%s: <%s> trying as vol path\n",
|
||||
cmd->def->name, optname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user