예제 #1
0
 def UpdateConfigs():  # pylint: disable=unused-variable
   """Poll the luci-config service."""
   try:
     configs = luci_config.FindAllSheriffConfigs(config_client)
     luci_config.StoreConfigs(datastore_client, configs.get('configs', []))
     return jsonify({})
   except (luci_config.InvalidConfigError,
           luci_config.InvalidContentError) as error:
     logging.warning('loading configs from luci-config failed: %s', error)
     return jsonify({}), 500
예제 #2
0
 def UpdateConfigs():  # pylint: disable=unused-variable
     """Poll the luci-config service."""
     try:
         configs = luci_config.FindAllSheriffConfigs(config_client)
         luci_config.StoreConfigs(datastore_client,
                                  configs.get('configs', []))
         return jsonify({})
     except (luci_config.InvalidConfigError,
             luci_config.InvalidContentError) as error:
         app.logger.debug(error)
         return jsonify({}), 500