#NEWLINE# def _get_boot_device( self , node_ident , supported = False ) : #NEWLINE# #INDENT# 'Get the current boot device or a list of supported devices.\n\n        :param node_ident: the UUID or logical name of a node.\n        :param supported: Boolean value. If true return a list of\n                          supported boot devices, if false return the\n                          current boot device. Default: False.\n        :returns: The current boot device or a list of the supported\n                  boot devices.\n\n        ' #NEWLINE# rpc_node = api_utils . get_rpc_node ( node_ident ) #NEWLINE# topic = pecan . request . rpcapi . get_topic_for ( rpc_node ) #NEWLINE# if supported : #NEWLINE# #INDENT# return pecan . request . rpcapi . get_supported_boot_devices ( pecan . request . context , rpc_node . uuid , topic ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return pecan . request . rpcapi . get_boot_device ( pecan . request . context , rpc_node . uuid , topic )