#NEWLINE# def service_update( self , ctxt , host_name , binary , params_to_update ) : #NEWLINE# #INDENT# "Used to enable/disable a service. For compute services, setting to\n        disabled stops new builds arriving on that host.\n\n        :param host_name: the name of the host machine that the service is\n                          running\n        :param binary: The name of the executable that the service runs as\n        :param params_to_update: eg. {'disabled': True}\n        :returns: the service reference\n        " #NEWLINE# ( cell_name , host_name ) = cells_utils . split_cell_and_item ( host_name ) #NEWLINE# response = self . msg_runner . service_update ( ctxt , cell_name , host_name , binary , params_to_update ) #NEWLINE# service = response . value_or_raise ( ) #NEWLINE# service = cells_utils . add_cell_to_service ( service , response . cell_name ) #NEWLINE# return service