From c1906b8e08defc1adf9ee2dd4cd238f4509f78af Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 11 Sep 2012 11:33:45 +0000 Subject: [PATCH] rename XML routine to setNodesAttribs git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 0801b86e7..64ebc8f32 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -57,7 +57,7 @@ sub handled_commands tabgrep => "tabutils", getAllEntries => "tabutils", getNodesAttribs => "tabutils", - setNodesAttribs1 => "tabutils", + setNodesAttribs => "tabutils", delEntries => "tabutils", getAttribs => "tabutils", setAttribs => "tabutils", @@ -156,9 +156,9 @@ sub process_request { return getNodesAttribs($request,$callback); } - elsif ($command eq "setNodesAttribs1") + elsif ($command eq "setNodesAttribs") { - return setNodesAttribs1($request,$callback); + return setNodesAttribs($request,$callback); } elsif ($command eq "delEntries") { @@ -2380,12 +2380,12 @@ sub getNodesAttribs } # -# setNodesAttribs1 - setNodesAttribs format 1 +# setNodesAttribs # Sets Nodes attributes for noderange for each of the tables supplied # Example of XML in for this routine # #PCM -#setNodesAttribs1 +#setNodesAttribs #blade01-blade02 # # @@ -2405,7 +2405,7 @@ sub getNodesAttribs # # # -sub setNodesAttribs1 +sub setNodesAttribs { my $request = shift; my $cb = shift; @@ -2421,7 +2421,6 @@ sub setNodesAttribs1 $newrequest->{command}->[0] = "nodech"; foreach my $table (@$tables) { my $tablename = $table->{name}->[0]; - my $tab=xCAT::Table->new($tablename); my %keyhash; my $attrs = $table->{attr}; foreach my $attrhash (@$attrs) {