wcs-olap: allow setting requests verify in config

This commit is contained in:
Benjamin Dauvergne 2016-05-19 15:18:57 +02:00
parent ad4ba3ea4d
commit f2f80cc6f2
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ def main2():
except KeyError, e:
logger.error('configuration in complete for %s: %s', url, e)
else:
api = wcs_api.WcsApi(url=url, orig=orig, key=key, slugs=slugs)
api = wcs_api.WcsApi(url=url, orig=orig, key=key, slugs=slugs,
verify=defaults.get('verify', 'True') == 'True')
logger.info('starting synchronizing w.c.s. at %r with PostgreSQL at %s', url, pg_dsn)
feeder = WcsOlapFeeder(api=api, schema=schema, pg_dsn=pg_dsn, logger=logger,
config=defaults)