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
This commit is contained in:
jjhua 2012-05-29 01:59:05 +00:00
parent 4de9a682b9
commit 994846f2b5

View File

@ -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);