Commit ea62327b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

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()) { ...@@ -33,6 +33,8 @@ while (my $rowref = $query_result->fetchrow_hashref()) {
AddAttr($type, "default_osid", "string", $rowref->{'osid'}) AddAttr($type, "default_osid", "string", $rowref->{'osid'})
if (defined($rowref->{'osid'}) && $rowref->{'osid'} ne ""); if (defined($rowref->{'osid'}) && $rowref->{'osid'} ne "");
AddAttr($type, "rebootable", "boolean", $rowref->{'isrebootable'})
if (defined($rowref->{'isrebootable'}));
next next
if ($rowref->{'isvirtnode'} || if ($rowref->{'isvirtnode'} ||
...@@ -88,8 +90,6 @@ while (my $rowref = $query_result->fetchrow_hashref()) { ...@@ -88,8 +90,6 @@ while (my $rowref = $query_result->fetchrow_hashref()) {
AddAttr($type, "trivlink_maxspeed", "integer", AddAttr($type, "trivlink_maxspeed", "integer",
$rowref->{'trivlink_maxspeed'}) $rowref->{'trivlink_maxspeed'})
if (defined($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'}) AddAttr($type, "bios_waittime", "integer", $rowref->{'bios_waittime'})
if (defined($rowref->{'bios_waittime'})); if (defined($rowref->{'bios_waittime'}));
AddAttr($type, "adminmfs_osid", "string", $rowref->{'adminmfs_osid'}) 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