def main(): args = parse_arguments() LoggingHelper.configure_logging(args.logging_level) ironic_client = IronicHelper.get_ironic_client() nodes = get_nodes(ironic_client) introspect_nodes(args.in_band, ironic_client, nodes)
def refresh_nodes(ironic_client, nodes): node_uuids = [node.uuid for node in nodes] tmp_nodes = get_nodes(ironic_client) nodes = [] for tmp_node in tmp_nodes: if tmp_node.uuid in node_uuids: nodes.append(tmp_node) return nodes