mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-25 04:30:28 +00:00
initialize type variable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@@ -3820,11 +3820,16 @@ sub get_ServiceNode
|
||||
#-----------------------------------------------------------------------------
|
||||
sub getSNformattedhash
|
||||
{
|
||||
my ($class, $node, $service, $request, $type) = @_;
|
||||
my ($class, $node, $service, $request, $btype) = @_;
|
||||
my @node_list = @$node;
|
||||
my $cmd;
|
||||
my %newsnhash;
|
||||
|
||||
my $type="";
|
||||
if ($btype) {
|
||||
$type=$btype;
|
||||
}
|
||||
|
||||
# get the values of either the servicenode or xcatmaster attributes
|
||||
my $sn = xCAT::Utils->get_ServiceNode(\@node_list, $service, $request);
|
||||
|
||||
|
Reference in New Issue
Block a user