[libvirt] [PATCH 05/12] virsh: Add target completion to dompmsuspend command

Lin Ma posted 12 patches 4 years, 7 months ago
There is a newer version of this series
[libvirt] [PATCH 05/12] virsh: Add target completion to dompmsuspend command
Posted by Lin Ma 4 years, 7 months ago
Signed-off-by: Lin Ma <lma@suse.com>
---
 tools/virsh-domain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 3fb37ea5e6..b3aa52b8a8 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -3453,6 +3453,7 @@ static const vshCmdOptDef opts_dom_pm_suspend[] = {
     {.name = "target",
      .type = VSH_OT_DATA,
      .flags = VSH_OFLAG_REQ,
+     .completer = virshNodeSuspendTargetCompleter,
      .help = N_("mem(Suspend-to-RAM), "
                 "disk(Suspend-to-Disk), "
                 "hybrid(Hybrid-Suspend)")
-- 
2.26.2