Home · About · Download · Documentation · Getting Help · Google+

Changeset 969 for branches


Ignore:
Timestamp:
05/15/2012 03:04:33 PM (6 years ago)
Author:
gmk
Message:

Properly catch an invalid bootstrap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/provision/3.2/lib/Warewulf/Provision/Pxelinux.pm

    r926 r969  
    154154            my $bootstrapObj = $db->get_objects("bootstrap", "_id", $bootstrapid)->get_object(0); 
    155155            if ($bootstrapObj) { 
    156                 $bootstrapname = $bootstrapObj->get("name"); 
     156                $bootstrapname = $bootstrapObj->name(); 
     157            } else { 
     158                &wprint("Defined bootstrap is not valid for node $nodename, skipping...\n"); 
     159                next; 
    157160            } 
    158161        } else { 
Note: See TracChangeset for help on using the changeset viewer.