-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
This commit is contained in:
jbjohnso 2008-09-08 23:12:41 +00:00
parent 310bf858a4
commit fd5fef885c

View File

@ -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