#NEWLINE# def _service( state ) : #NEWLINE# #INDENT# role = re . split ( '_' , ctx . instance . id ) [ 0 ] #NEWLINE# _run ( 'sudo service {0} {1}' . format ( role , state ) , error_message = 'Failed setting state to {0}' . format ( state ) )