From 994846f2b51a492ca3d24ef7027c5c682ec5547f Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 29 May 2012 01:59:05 +0000 Subject: [PATCH] move the action setting out of the loop git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPvitals.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/perl-xCAT/xCAT/FSPvitals.pm b/perl-xCAT/xCAT/FSPvitals.pm index 641ac750e..4a9f880a0 100644 --- a/perl-xCAT/xCAT/FSPvitals.pm +++ b/perl-xCAT/xCAT/FSPvitals.pm @@ -405,13 +405,14 @@ sub lcds { return $result; } $type = $$d[4]; - if( $type =~ /lpar/ ) { - $action = "query_lcds"; - } else { - $action = "cec_query_lcds"; - } } } + + if( $type =~ /lpar/ ) { + $action = "query_lcds"; + } else { + $action = "cec_query_lcds"; + } $$newd[0] = $newids; $result = enumerate_lcds($request, $newnames, $newd, $action, $only_lcds);