Skip to content

Commit

Permalink
Merge pull request #14613 from jzigmund/bz1437765-error_on_cloud_images
Browse files Browse the repository at this point in the history
Added virtual_column 'image?' for ::CloudManager::Template
  • Loading branch information
isimluk authored Apr 4, 2017
2 parents 8482073 + 0c5027b commit 4c38092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/manageiq/providers/cloud_manager/template.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class ManageIQ::Providers::CloudManager::Template < ::MiqTemplate
default_value_for :cloud, true

virtual_column :image?, :type => :boolean

def image?
genealogy_parent.nil?
end
Expand Down

0 comments on commit 4c38092

Please sign in to comment.