Skip to content

Commit

Permalink
Search feature for provisioning instance and virtual machines
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffibm committed Apr 18, 2024
1 parent dfbf8e7 commit 71899d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/miq_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def self.eligible_for_provisioning
where(:type => subclasses_supporting(:provisioning).map(&:name)).active
end

def self.filter_with_name(name)
where("vms.name ILIKE ?", "%#{name}%")
end

def self.without_volume_templates
where.not(:type => ["ManageIQ::Providers::Openstack::CloudManager::VolumeTemplate",
"ManageIQ::Providers::Openstack::CloudManager::VolumeSnapshotTemplate"])
Expand Down

0 comments on commit 71899d6

Please sign in to comment.