From c764d289596b7c9ecd5317526cb04ad7dc75569a Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 29 May 2012 01:56:58 +0000 Subject: [PATCH] move the action setting out of the loop git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12948 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);