Skip to content

Commit

Permalink
add flavors info in instance provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Demichev committed Sep 6, 2017
1 parent cd4a0c8 commit 200878b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,10 @@ def raw_delete_flavor
def validate_delete_flavor
{:available => true, :message => nil}
end

def description
ram = ActionController::Base.helpers.number_to_human_size(memory)
disk_size = ActionController::Base.helpers.number_to_human_size(root_disk_size)
_("#{cpus} CPUs, #{ram} RAM, #{disk_size} Root Disk")
end
end

0 comments on commit 200878b

Please sign in to comment.