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
(cherry picked from commit 4c38092)

https://bugzilla.redhat.com/show_bug.cgi?id=1439397
  • Loading branch information
isimluk authored and simaishi committed Apr 5, 2017
1 parent 3160779 commit 15d3505
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 15d3505

Please sign in to comment.