From 52a7cd76a3e68191b8abe37afe733bd8ee48c488 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 2 Oct 2009 15:27:59 +0000 Subject: [PATCH] -Correct scope of previous code git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index ed8314874..75e59ef3c 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -2033,11 +2033,11 @@ sub mknetboot { foreach (@reqmods) { $mods{$_} = 1; } + my $shortprofname = $profile; + $shortprofname =~ s/\/\z//; + $shortprofname =~ s/.*\///; unless($donetftp{$osver,$arch}) { my $srcdir = "$installroot/$osver/$arch"; - my $shortprofname = $profile; - $shortprofname =~ s/\/\z//; - $shortprofname =~ s/.*\///; my $dest = "$tftpdir/xcat/netboot/$osver/$arch/$shortprofname"; cpNetbootImages($osver,$srcdir,$dest,$custprofpath,\%mods); makecustomizedmod($osver,$dest);