Commit 07861e75 authored by Leigh B Stoller's avatar Leigh B Stoller

Bug Fix: unitialized variable warnings in feature generation.

parent 093eb288
......@@ -746,7 +746,7 @@ foreach $node (keys(%nodes)) {
my $uuid = $nodetouuid{$node};
my @types = ("$type:1");
my @features;
my @features = ();
my @flags;
my $needvirtgoo = 0;
......@@ -924,8 +924,10 @@ foreach $node (keys(%nodes)) {
if ($cpu_ram_features_present) {
# Add CPU and RAM information
push @features, "?+cpu:$cpu_speed";
push @features, "?+ram:$ram";
push @features, "?+cpu:$cpu_speed"
if (defined($cpu_speed));
push @features, "?+ram:$ram"
if (defined($ram));
push @features, "?+cpupercent:92"; # XXX Hack
push @features, "?+rampercent:80"; # XXX Hack
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