From 2f930993c0c9f478661c45986d891fbcc2e4712f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 11 Nov 2013 09:25:22 -0500 Subject: [PATCH] Recognize and translate invalid url message --- xCAT-server/lib/xcat/plugins/ipmi.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index ffcb4be9e..8001afc3d 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -1307,8 +1307,15 @@ sub fpc_update_aborted { } sub fpc_firmxfer_watch { + my $abort = 0; if ($_[0]->{code} == 0x89) { xCAT::SvrUtils::sendmsg([1,"Transfer failed (wrong url?)"],$callback,$_[1]->{node},%allerrornodes); + $abort = 1; + } elsif ($_[0]->{code} == 0x91) { + xCAT::SvrUtils::sendmsg([1,"Invalid URL format given"],$callback,$_[1]->{node},%allerrornodes); + $abort = 1; + } + if ($abort) { abort_fpc_update($_[1]); return; }