blob: 76dedcd2b3fd6d1d167d1d6012245cec2e7377b6 [file] [log] [blame]
import node
import fuel_rest_api
def discover_fuel_nodes(root_url, credentials):
"""Discover Fuel nodes"""
connection = fuel_rest_api.KeystoneAuth(root_url, credentials)
fi = fuel_rest_api.FuelInfo(connection)
return [node.Node(n.ip, n.get_roles()) for n in fi.nodes]