-Fix error message when a template error fails a table lookup to be more helpful
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0a4da3a31e
commit
452fb6ae1a
@ -169,6 +169,7 @@ sub tabdb
|
||||
my $ent;
|
||||
if ($key eq "THISNODE" or $key eq '$NODE') {
|
||||
$ent = $tabh->getNodeAttribs($node,[$field]);
|
||||
$key="node=$node";
|
||||
} else {
|
||||
my %kp;
|
||||
foreach (split /,/,$key) {
|
||||
@ -182,7 +183,7 @@ sub tabdb
|
||||
$tabh->close;
|
||||
unless($ent and defined($ent->{$field})) {
|
||||
unless ($blankok) {
|
||||
$tmplerr="Unable to find requested $field from $table in this context";
|
||||
$tmplerr="Unable to find requested $field from $table, with $key";
|
||||
}
|
||||
return "";
|
||||
#return "#TABLEBAD:$table:field $field not found#";
|
||||
|
Loading…
Reference in New Issue
Block a user