From 3243037a918374ae92919410c38122f1adc06e23 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 21 Oct 2013 10:44:15 -0400 Subject: [PATCH] For newer versions of esxi for which we have selected a less vague name, ensure we remake it every time. --- 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 235264205..1f4af072e 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -4514,12 +4514,12 @@ sub makecustomizedmod { my $modname; if ($osver =~ /esxi4/) { #want more descriptive name,but don't break esxi4 setups. $modname="mod.tgz"; + # if it already exists, do not overwrite it because it may be someone + # else's custom image + if(-f "$dest/$modname"){ return 1; } } else { $modname="xcatmod.tgz"; } - # if it already exists, do not overwrite it because it may be someone - # else's custom image - if(-f "$dest/$modname"){ return 1; } my $passtab = xCAT::Table->new('passwd'); my $tmp; my $password;