#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# node = get_node ( name ) #NEWLINE# ret = take_action ( name = name , call = call , method = 'POST' , command = '/my/machines/{0}' . format ( call [ 'id' ] ) , location = node [ 'location' ] , data = { #NEWLINE# #INDENT# 'action' : 'reboot' , #NEWLINE# #UNINDENT# } ) #NEWLINE# return ( ret [ 0 ] in VALID_RESPONSE_CODES )