From 427dab0ad21d7ebfc3e6f03b980379792b98b964 Mon Sep 17 00:00:00 2001 From: jjhua Date: Wed, 23 May 2012 06:29:34 +0000 Subject: [PATCH] For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/windows.pm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 8f957aacc..8bd241a09 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -472,15 +472,17 @@ sub copycd my $distname = ""; my $installroot; $installroot = "/install"; - my $sitetab = xCAT::Table->new('site'); - if ($sitetab) - { - (my $ref) = $sitetab->getAttribs({key => installdir}, value); - if ($ref and $ref->{value}) + #my $sitetab = xCAT::Table->new('site'); + #if ($sitetab) + #{ + #(my $ref) = $sitetab->getAttribs({key => installdir}, value); + my @entries = xCAT::Utils->get_site_attribute("installdir"); + my $t_entry = $entries[0]; + if ( defined($t_entry) ) { - $installroot = $ref->{value}; + $installroot = $t_entry; } - } + #} @ARGV = @{$request->{arg}}; GetOptions(