Rework message when uuid is not available to be less severe
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8858 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2c9e58f954
commit
bea95cbe38
@ -967,6 +967,10 @@ sub handle_response {
|
||||
$desc.=": Error: ".$node->{error}->[0];
|
||||
$errflg=1;
|
||||
}
|
||||
if ($node->{warning}) {
|
||||
$desc.=": Warning: ".$node->{warning}->[0];
|
||||
$errflg=1;
|
||||
}
|
||||
if ($node->{data}) {
|
||||
if (ref(\($node->{data}->[0])) eq 'SCALAR') {
|
||||
$desc=$desc.": ".$node->{data}->[0];
|
||||
|
@ -152,14 +152,13 @@ sub addnode6 {
|
||||
#omshell to add host dynamically
|
||||
my $node = shift;
|
||||
unless ($vpdhash) {
|
||||
$callback->({error => ["Unable to open vpd table, it may not exist yet"], errorcode => [1] });
|
||||
$callback->({node=>{name=>[$node],warning => ["Skipping DHCPv6 setup due to missing vpd.uuid information."]}});
|
||||
return;
|
||||
}
|
||||
my $ent = $vpdhash->{$node}->[0]; #tab->getNodeAttribs($node, [qw(mac)]);
|
||||
unless ($ent and $ent->{uuid})
|
||||
{
|
||||
print Dumper($vpdhash);
|
||||
$callback->( { error => ["Unable to find UUID for $node"], errorcode => [1] });
|
||||
$callback->({node=>{name=>[$node],warning => ["Skipping DHCPv6 setup due to missing vpd.uuid information."]}});
|
||||
return;
|
||||
}
|
||||
#phase 1, dynamic and static addresses, hopefully ddns-hostname works, may be tricky to do 'send hostname'
|
||||
|
Loading…
Reference in New Issue
Block a user