From a231ffb01ad4ee5e8ed1681b5b50fa3349a85d20 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 9 Mar 2011 03:19:50 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/perl/xCAT/Postage.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 9564ccad4..9eed072d0 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -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")) {