Skip to content

Commit

Permalink
Merge pull request #141 from douglasgabriel/blank_disk
Browse files Browse the repository at this point in the history
Leaving the disk capacity blank if the LXCA doesn't provide this information
  • Loading branch information
agrare authored Mar 21, 2018
2 parents d5f3d3e + 55c4830 commit df476a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_disk_capacity(node)
total_disk_cap += disk['capacity'] unless disk['capacity'].nil?
end
end
total_disk_cap
total_disk_cap.positive? ? total_disk_cap : nil
end

def get_memory_info(node)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
computer_system = physical_server[:computer_system]
hardware = computer_system[:hardware]

expect(hardware[:disk_capacity]).to eq(0)
expect(hardware[:disk_capacity]).to be_nil
end
end

Expand Down

0 comments on commit df476a0

Please sign in to comment.