diff options
author | Richard Jones <rjones@redhat.com> | 2009-11-17 14:09:58 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-11-17 14:09:58 +0000 |
commit | 9004f3c5302fbb70212ccc420b863c9a3ca75abf (patch) | |
tree | a864cd0e0ca002cc15922ce608d041554abb1ee8 /tools | |
parent | 15de7e0d8d1529803a4c11168a86a05800e0ac13 (diff) | |
download | libguestfs-9004f3c5302fbb70212ccc420b863c9a3ca75abf.tar.gz libguestfs-9004f3c5302fbb70212ccc420b863c9a3ca75abf.tar.xz libguestfs-9004f3c5302fbb70212ccc420b863c9a3ca75abf.zip |
virt-df: Turn errors into warnings when listing all domains.
This is a partial fix for RHBZ#538041. When listing all domains,
don't die just because one domain fails, but keep trying for the
rest.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/virt-df | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virt-df b/tools/virt-df index 78eb25c9..6157e21c 100755 --- a/tools/virt-df +++ b/tools/virt-df @@ -165,7 +165,8 @@ if (@ARGV == 0) { if (@domnames) { print_title (); foreach (@domnames) { - do_df ($_); + eval { do_df ($_); }; + warn $@ if $@; } } } else { |