Commit ea62327b authored by Leigh Stoller's avatar Leigh Stoller

Make sure that rebootable flags gets set properly on all node types.

parent 7641475f
......@@ -33,6 +33,8 @@ while (my $rowref = $query_result->fetchrow_hashref()) {
AddAttr($type, "default_osid", "string", $rowref->{'osid'})
if (defined($rowref->{'osid'}) && $rowref->{'osid'} ne "");
AddAttr($type, "rebootable", "boolean", $rowref->{'isrebootable'})
if (defined($rowref->{'isrebootable'}));
next
if ($rowref->{'isvirtnode'} ||
......@@ -88,8 +90,6 @@ while (my $rowref = $query_result->fetchrow_hashref()) {
AddAttr($type, "trivlink_maxspeed", "integer",
$rowref->{'trivlink_maxspeed'})
if (defined($rowref->{'trivlink_maxspeed'}));
AddAttr($type, "rebootable", "boolean", $rowref->{'isrebootable'})
if (defined($rowref->{'isrebootable'}));
AddAttr($type, "bios_waittime", "integer", $rowref->{'bios_waittime'})
if (defined($rowref->{'bios_waittime'}));
AddAttr($type, "adminmfs_osid", "string", $rowref->{'adminmfs_osid'})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment