#NEWLINE# def reboot( name , call = None ) : #NEWLINE# #INDENT# "\n    reboot a machine by name\n    :param name: name given to the machine\n    :param call: call value in this case is 'action'\n    :return: true if successful\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt-cloud -a reboot vm_name\n    " #NEWLINE# datacenter_id = get_datacenter_id ( ) #NEWLINE# conn = get_conn ( ) #NEWLINE# node = get_node ( conn , name ) #NEWLINE# conn . reboot_server ( datacenter_id = datacenter_id , server_id = node [ 'id' ] ) #NEWLINE# return True