On 17/11/09 14:24, Richard W.M. Jones wrote:
Subject: [PATCH 1/2] 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.
---
tools/virt-df | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/virt-df b/tools/virt-df
index 78eb25c..6157e21 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 {
-- 1.6.5.2
ACK.
--
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team
M: +44 (0)7977 267231
GPG ID: D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490