Exemplo n.º 1
0
 def _find_ironic_node(self, id):
     # ISSUE: iterating all nodes because query by name (onrack id) isn't working in ironic?
     nodes = shovel.get_ironic_nodes()
     for n in nodes['nodes']:
         if n['extra'].get('nodeid', None) == id:
             return n
     return None
Exemplo n.º 2
0
 def _find_ironic_node(self, id):
     # ISSUE: iterating all nodes because query by name (onrack id) isn't working in ironic?
     nodes = shovel.get_ironic_nodes()
     for n in nodes['nodes']:
         if n['extra'].get('nodeid', None) == id:
             return n
     return None
Exemplo n.º 3
0
 def _find_ironic_node(self, id):
     nodes = shovel.get_ironic_nodes()
     for n in nodes['nodes']:
         if n['extra'].get('nodeid', None) == id:
             return n
Exemplo n.º 4
0
 def _find_ironic_node(self, id):
     nodes = shovel.get_ironic_nodes()
     for n in nodes['nodes']:
         if n['extra'].get('nodeid', None) == id:
             return n