Only set PREFERRED_PARSER for Linux.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1082 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2008-04-16 16:54:18 +00:00
parent e951b2e047
commit e84303c765

View File

@ -5,7 +5,9 @@ use strict;
use Getopt::Long;
use Socket;
use XML::Simple;
$XML::Simple::PREFERRED_PARSER='XML::Parser';
if ($^O =~ /^linux/i) {
$XML::Simple::PREFERRED_PARSER='XML::Parser';
}
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::PPCdb;
use xCAT::GlobalDef;