Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit 8f755306 authored by Matthias's avatar Matthias
Browse files

add endpoint for clearing drupal cache (+merge previous commits)

parent 337b76d7
......@@ -40,6 +40,7 @@ def create_app(test_config=None):
app.config['drupal-password'] = os.environ['DRUPAL_PASSWORD']
app.config['drupal-api-url'] = os.environ['DRUPAL_API_URL']
app.config['drupal-api-key'] = os.environ['DRUPAL_API_KEY']
app.config['clear-cache-url'] = os.environ['CLEAR_CACHE_URL']
app.config['topic-configs'] = os.environ['TOPIC_CONFIGS']
app.config['topic-drupal-export'] = os.environ['TOPIC_DRUPAL_EXPORT']
app.config['sftp_host'] = os.environ['SFTP_HOST']
......
......@@ -18,7 +18,7 @@ class ClearCache(Resource):
description: Failure tha call to drupal could neo be executed
"""
uri = current_app.config['drupal-api-url'] + current_app.config['CLEAR_CACHE_URL']
uri = current_app.config['drupal-api-url'] + current_app.config['clear-cache-url']
headers = {'X-API-Key': current_app.config['drupal-api-key']}
try:
response = requests.get(uri, headers=headers)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment