From fd5fef885c16fcf6562148e31a62e1aab17c2cbc Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 8 Sep 2008 23:12:41 +0000 Subject: [PATCH] -Provide error message when passwd table being messed up precludes makedhcp from performing an operation git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index de0ac6eb8..79581cf37 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -447,6 +447,8 @@ sub process_request ($ent) = $passtab->getAttribs({key => "omapi"}, qw(username password)); unless ($ent->{username} and $ent->{password}) { + $callback->({error=>["Unable to access omapi key from passwd table, add the key from dhcpd.conf or makedhcp -n to create a new one"],errorcode=>[1]}); + syslog("local4|err","Unable to access omapi key from passwd table, unable to update DHCP configuration"); return; } # TODO sane err #Have nodes to update