From 3598d5047d164b627f48dc701747fd754a739528 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 8 Oct 2013 15:36:59 -0400 Subject: [PATCH] defect 3816 --- xCAT-server/lib/perl/xCAT/Template.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index ea41e6065..5ecf866ad 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -894,7 +894,11 @@ sub tabdb } } #$tmplerr="Unable to find requested $field from $table, with $key"; + my $savekey=$key; + $key = '$NODE'; # make sure we use getNodeAttribs when get_replacement + # calls this routine (tabdb) my $rep=get_replacement($table,$key,$field); + $key=$savekey; # restore just in case we rely on the node=$node setting if ($rep) { return tabdb($rep->[0], $rep->[1], $rep->[2]); } else {