Skip to content

Commit

Permalink
Dont return different types in virtual columns, delete not needed vir…
Browse files Browse the repository at this point in the history
…tual columns
  • Loading branch information
PanSpagetka committed Nov 19, 2018
1 parent 89adf41 commit 47255ca
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions app/models/miq_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,8 @@ def display_platform
end
end

def display_cpu_cores
if respond_to?(:volume_template?) || respond_to?(:volume_snapshot_template?)
_("N/A")
else
cpu_total_cores
end
end

def display_memory
if respond_to?(:volume_template?) || respond_to?(:volume_snapshot_template?)
_("N/A")
else
mem_cpu.to_i * 1024 * 1024
end
end

def display_snapshots
if respond_to?(:volume_template?) || respond_to?(:volume_snapshot_template?)
_("N/A")
else
v_total_snapshots
end
mem_cpu.to_i * 1024 * 1024
end

def display_tenant
Expand Down

0 comments on commit 47255ca

Please sign in to comment.