def Render(self, args, token=None):

    if not args.name:
      raise ValueError("Name not specified.")

    redacted = False

    for section in REDACTED_SECTIONS:
      if args.name.startswith(section + "."):
        redacted = True
        break

    for option in REDACTED_OPTIONS:
      if args.name == option:
        redacted = True
        break

    if redacted:
      return dict(status="OK",
                  type="redacted")
    else:
      rendered_option = RenderConfigOption(args.name)
      return dict(status="OK",
                  **rendered_option)
Since grains are loaded in many different places and some of those
dataset/ETHPy150Open google/grr/grr/gui/api_plugins/config.py/ApiGetConfigOptionHandler.Render--crossover with--dataset/ETHPy150Open saltstack/salt/salt/proxy/rest_sample.py/initialized