mirror of https://gitee.com/openkylin/libvirt.git
virsh: Error out while domain not found for 'event' command
Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
parent
b925e6625c
commit
2273e408d9
|
@ -13445,7 +13445,9 @@ cmdEvent(vshControl *ctl, const vshCmd *cmd)
|
|||
goto cleanup;
|
||||
|
||||
if (vshCommandOptBool(cmd, "domain"))
|
||||
dom = virshCommandOptDomain(ctl, cmd, NULL);
|
||||
if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
|
||||
goto cleanup;
|
||||
|
||||
if (vshEventStart(ctl, timeout) < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
|
Loading…
Reference in New Issue