Skip to content

Commit

Permalink
leaving the disk capacity blank if the LXCA doesn't provide this info…
Browse files Browse the repository at this point in the history
…rmation
  • Loading branch information
douglasgabriel committed Mar 16, 2018
1 parent d5f3d3e commit de28f36
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 > 0 ? 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 de28f36

Please sign in to comment.