mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
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…
x
Reference in New Issue
Block a user