virt-inspector --fish: Fix incorrect '-a' parameter (RHBZ#512709)
authorRichard Jones <rjones@trick.home.annexia.org>
Mon, 20 Jul 2009 14:09:11 +0000 (15:09 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Mon, 20 Jul 2009 14:09:11 +0000 (15:09 +0100)
commit7a14e0509d5cc976deda9b5299f56930e0317502
tree9b9835140b405e4d7b27ac167cba28ffb9047d38
parent06f6cc32f02c25b88e763237332b17dc7c6c6837
virt-inspector --fish: Fix incorrect '-a' parameter (RHBZ#512709)

virt-inspector --fish dom
virt-inspector --ro-fish dom

Both of the above commands give incorrect results if run on a
libvirt domain, eg:

$ virt-inspector --ro-fish RHEL54Betax64
==> --ro -a RHEL54Betax64 -m /dev/VolGroup00/LogVol00:/ -m /dev/sda1:/boot
            ^^^^^^^^^^^^^

This is because the current code just prints back the original @ARGV
parameters.

This patch fixes this by getting the image names instead.
inspector/virt-inspector.pl
perl/lib/Sys/Guestfs/Lib.pm