From 651d9f749ef8d92fcb541cf7d5029fa10cba72a8 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 16 Apr 2008 17:01:40 +0000 Subject: [PATCH] Set PREFERRED_PARSER for linux only. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1084 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/lsslp.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/lsslp.pm b/xCAT-server-2.0/lib/xcat/plugins/lsslp.pm index 33a9463a8..feacff62a 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/lsslp.pm @@ -9,7 +9,9 @@ use Storable qw(freeze thaw); use Time::HiRes qw(gettimeofday); use IO::Select; use XML::Simple; -$XML::Simple::PREFERRED_PARSER='XML::Parser'; +if ($^O =~ /^linux/i) { + $XML::Simple::PREFERRED_PARSER='XML::Parser'; +} use xCAT::PPCdb;