]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh-completer: Separate comma list construction into a function
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Jun 2019 10:16:17 +0000 (12:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 Jul 2019 14:44:20 +0000 (16:44 +0200)
commit9ef216ce2d9519bbd200aea7ade4019c053d641b
treeb87f28c80d457366c5b04f7a254a9847da7cf002
parent728343983787cbd4d7ae8fa2007a157bb140f02a
virsh-completer: Separate comma list construction into a function

There are more arguments than 'shutdown --mode' that accept a
list of strings separated by commas. 'nodedev-list --cap' is one
of them. To avoid duplicating code, let's separate interesting
bits of virshDomainShutdownModeCompleter() into a function that
can then be reused.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tools/virsh-completer.c