diff --git a/perl-xCAT/xCAT/TableUtils.pm b/perl-xCAT/xCAT/TableUtils.pm index 71c8b010e..14b056667 100644 --- a/perl-xCAT/xCAT/TableUtils.pm +++ b/perl-xCAT/xCAT/TableUtils.pm @@ -901,18 +901,14 @@ sub setUpdateStatus if(@nodes>0){ my %updates; - $updates{'updatestatus'} = $status; - $updates{'updatestatustime'} = $currtime; - my $where_clause; - my $dbname=xCAT::Utils->get_DBName() ; - if ($dbname eq 'DB2') { - $where_clause="\"node\" in ('" . join("','", @nodes) . "')"; - } else { - $where_clause="node in ('" . join("','", @nodes) . "')"; - } - # print "$where_clause"; - $nltab->setAttribsWhere($where_clause, \%updates ); - } + foreach my $node (@nodes) + { + $updates{$node}{'updatestatus'} = $status; + $updates{$node}{'updatestatustime'} = $currtime; + } + + $nltab->setNodesAttribs(\%updates); + } $nltab->close; } return;