From 245a05e7ccbc767eda40e2701d09e445f48a7a5e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 11 Oct 2010 13:18:50 +0000 Subject: [PATCH] -Correct misleading error message in defect 3082343 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7808 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/windows.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 0cd4e33b5..d29283325 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -240,8 +240,9 @@ sub mkinstall my $arch = $ent->{arch}; my $profile = $ent->{profile}; if ($os eq "imagex") { - unless ( -r "$installroot/images/$arch/$profile.wim" ) { - $callback->({error=>["$installroot/images/$profile.$arch.wim not found, run rimage on a node to capture first"],errorcode=>[1]}); + my $wimfile="$installroot/images/$arch/$profile.wim"; + unless ( -r $wimfile ) { + $callback->({error=>["$wimfile not found, run rimage on a node to capture first"],errorcode=>[1]}); next; } my $script=applyimagescript($arch,$profile);