From d2d77a54c857a527ea555d591abddb58ec461989 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 30 Jul 2009 19:42:29 +0000 Subject: [PATCH] remove linux check around ::Simple::PREFERRED_PARSER='XML::Parser' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 4 +--- xCAT-server/lib/xcat/plugins/nodediscover.pm | 4 +--- xCAT-server/lib/xcat/plugins/xen.pm | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index f87c55262..914912bc3 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -24,9 +24,7 @@ my $nthash; #to store nodetype data my $hmhash; 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/nodediscover.pm b/xCAT-server/lib/xcat/plugins/nodediscover.pm index 120fe23f6..0fc0b4a8e 100644 --- a/xCAT-server/lib/xcat/plugins/nodediscover.pm +++ b/xCAT-server/lib/xcat/plugins/nodediscover.pm @@ -6,9 +6,7 @@ use IO::Socket; use strict; 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/xen.pm b/xCAT-server/lib/xcat/plugins/xen.pm index 287580666..5976f1c10 100644 --- a/xCAT-server/lib/xcat/plugins/xen.pm +++ b/xCAT-server/lib/xcat/plugins/xen.pm @@ -23,9 +23,7 @@ my $vmhash; my $hmhash; 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);