]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Add target completion to dompmsuspend command
authorLin Ma <lma@suse.com>
Tue, 15 Jun 2021 00:38:25 +0000 (08:38 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Jun 2021 08:27:59 +0000 (10:27 +0200)
Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c

index de80b1c2d5199bf9f0cf4b2171c5362b1592d65d..34a30c43c9c6239e9ec8b309d09b2bd908fbe16a 100644 (file)
@@ -3454,6 +3454,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)")