From 1919a52ca78da25f41614655bd5221b8a93148f3 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 29 Jul 2009 16:20:35 +0000 Subject: [PATCH] remove Linux check around XML::Simple::PREFERRED_PARSER git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 4 +--- xCAT-server/lib/xcat/plugins/lsslp.pm | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 92b6d1970..28dfe6507 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -23,9 +23,7 @@ my %mm_comm_pids; #a 'browser' for http actions my $browser; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use POSIX "WNOHANG"; use Storable qw(freeze thaw); diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 1a8f593bb..bd93e241c 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -9,9 +9,7 @@ use Storable qw(freeze thaw); use Time::HiRes qw(gettimeofday); use IO::Select; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use xCAT::PPCdb; require xCAT::MacMap;