parameters: ()
docstring: set docker host
docstring_summary: set docker host
docstring_tokens: set docker host
function: def set_host():
      """
      set docker host
      """
      new_host = loads(request.data)["id"]
      if new_host is None:
          if os.environ.has_key('DOCKER_HOST'):
              del os.environ['DOCKER_HOST']
          return jsonify()
      else:
          os.environ['DOCKER_HOST'] = new_host
          return jsonify(host=new_host)
function_tokens: def set_host ( ) : new_host = loads ( request . data ) [ "id" ] if new_host is None : if os . environ . has_key ( 'DOCKER_HOST' ) : del os . environ [ 'DOCKER_HOST' ] return jsonify ( ) else : os . environ [ 'DOCKER_HOST' ] = new_host return jsonify ( host = new_host )