From 2419a7809834772b8b9650f3b7d9bd31c4fb1d97 Mon Sep 17 00:00:00 2001 From: Kilian Cavalotti Date: Wed, 11 Apr 2018 15:29:52 -0700 Subject: [PATCH] ddns: log more infornation to show the DNS entry when an error occurs --- xCAT-server/lib/xcat/plugins/ddns.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 903c3aea5..2b6a1b2e3 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -1528,7 +1528,7 @@ sub add_or_delete_records { next; } if ($reply->header->rcode ne 'NOERROR') { - xCAT::SvrUtils::sendmsg([ 1, "Failure encountered updating $zone, error was " . $reply->header->rcode . ". See more details in system log." ], $callback); + xCAT::SvrUtils::sendmsg([ 1, "Failure encountered updating $zone with entry '$entry', error was " . $reply->header->rcode . ". See more details in system log." ], $callback); } } else { @@ -1549,7 +1549,7 @@ sub add_or_delete_records { next; } if ($reply->header->rcode ne 'NOERROR') { - xCAT::SvrUtils::sendmsg([ 1, "Failure encountered updating $zone, error was " . $reply->header->rcode . ". See more details in system log." ], $callback); + xCAT::SvrUtils::sendmsg([ 1, "Failure encountered updating $zone with entry '$entry', error was " . $reply->header->rcode . ". See more details in system log." ], $callback); } } else {