mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
virsh: fix snapshot list --parent
The root snapshot does not have a parent. Use NULLSTR_EMPTY to pass an empty string instead of putting too few columns in the table. https://bugzilla.redhat.com/show_bug.cgi?id=1662849 Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
4b23f18d2c
commit
d3e5c3605a
@ -1608,7 +1608,8 @@ cmdSnapshotList(vshControl *ctl, const vshCmd *cmd)
|
||||
&time_info);
|
||||
|
||||
if (parent) {
|
||||
if (vshTableRowAppend(table, snap_name, timestr, state, parent_snap,
|
||||
if (vshTableRowAppend(table, snap_name, timestr, state,
|
||||
NULLSTR_EMPTY(parent_snap),
|
||||
NULL) < 0)
|
||||
goto cleanup;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user