defect 3203249: fix the issue that handle the upper-lower case of os attribute, we'd better keep the case sensitive
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
bcf565c6e7
commit
a231ffb01a
@ -277,8 +277,8 @@ sub makescript
|
||||
# !!!!! it must be an unencrypted value for AIX!!!!
|
||||
# - user will have to reset if this is a security issue
|
||||
$os =~ s/\s*$//;
|
||||
$os =~ tr/A-Z/a-z/; # Convert to lowercase
|
||||
if ($os eq "aix")
|
||||
#$os =~ tr/A-Z/a-z/; # Convert to lowercase
|
||||
if ($os eq "aix" || $os eq "AIX")
|
||||
{
|
||||
my $passwdtab = xCAT::Table->new('passwd');
|
||||
unless ($passwdtab)
|
||||
@ -473,6 +473,7 @@ sub makescript
|
||||
elsif ($os =~ /ubuntu.*/) { $platform = "ubuntu"; }
|
||||
elsif ($os =~ /debian.*/) { $platform = "debian"; }
|
||||
elsif ($os =~ /aix.*/) { $platform = "aix"; }
|
||||
elsif ($os =~ /AIX.*/) { $platform = "AIX"; }
|
||||
}
|
||||
if (($nodesetstate) && ($nodesetstate eq "netboot"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user