From 066696686f9283c2058a897a9c682fb0a4b90f7a Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 8 Oct 2013 15:31:17 -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 69c560e4e..b7c2e82bb 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -875,7 +875,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 {