Skip to content

Commit

Permalink
Add a method to InfraManager to retrieve Hosts without EmsCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Apr 25, 2017
1 parent 08d6d4f commit d54d057
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 d54d057

Please sign in to comment.