Skip to content

Commit

Permalink
Merge pull request #14884 from skateman/clusterless-hosts
Browse files Browse the repository at this point in the history
Add a method to InfraManager to retrieve Hosts without EmsCluster
(cherry picked from commit a90ca1e)

https://bugzilla.redhat.com/show_bug.cgi?id=1458930
  • Loading branch information
gtanzillo authored and simaishi committed Jun 5, 2017
1 parent 6747582 commit 9e05d31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@ def validate_authentication_status
def validate_import_vm
false
end

def clusterless_hosts
hosts.where(:ems_cluster => nil)
end
end
end

0 comments on commit 9e05d31

Please sign in to comment.