From 9763c34e7590aaffae3ca318299ea37af33ef2ea Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Mon, 13 Mar 2017 10:06:40 -0400 Subject: [PATCH] Added a warning message --- xCAT-server/lib/xcat/plugins/kvm.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 6a8433e37..becd4c557 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -1785,7 +1785,10 @@ sub rmvm { next; } my $file = $disk->getAttribute("file"); - unless ($file) { next; } + unless ($file) { + xCAT::MsgUtils->trace(0, "w", "Not able to find 'file' attribute value for: $disk"); + next; + } # try to check the existence first, if cannot find, do nothing. # we do retry because we found sometimes the delete might fail