diff options
-rw-r--r-- | ansible/roles/init-conf/templates/kernelci-celery-beat.service | 2 | ||||
-rw-r--r-- | app/handlers/__init__.py | 2 | ||||
-rw-r--r-- | doc/examples.rst | 7 |
3 files changed, 4 insertions, 7 deletions
diff --git a/ansible/roles/init-conf/templates/kernelci-celery-beat.service b/ansible/roles/init-conf/templates/kernelci-celery-beat.service index a0d5add..270a68f 100644 --- a/ansible/roles/init-conf/templates/kernelci-celery-beat.service +++ b/ansible/roles/init-conf/templates/kernelci-celery-beat.service @@ -16,7 +16,7 @@ PIDFile=/tmp/kernelci-celery-beat.pid WorkingDirectory={{ install_base }}/{{ hostname }}/app ExecStart={{ install_base }}/.venv/{{ hostname }}/bin/python -OO -R \ {{ install_base }}/.venv/{{ hostname }}/bin/celery beat \ - --loglevel=INFO --schedule=/var/run/celery/kernelci-beat.db + --loglevel=INFO --schedule=/var/run/celery/kernelci-beat.db \ --app=taskqueue [Install] diff --git a/app/handlers/__init__.py b/app/handlers/__init__.py index d4302cd..56b268e 100644 --- a/app/handlers/__init__.py +++ b/app/handlers/__init__.py @@ -1,2 +1,2 @@ -__version__ = "2015.1.3" +__version__ = "2015.1.4" __versionfull__ = __version__ diff --git a/doc/examples.rst b/doc/examples.rst index 8d18d25..bdd3bbf 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -449,12 +449,9 @@ Upload a single file 'Authorization': AUTHORIZATION_TOKEN } - files = { - 'file': (open('/path/to/boot-arch.json', 'rb')) - } - url = urljoin(BACKEND_URL, '/upload/next/next-20150116/arm64-allnoconfig/lab-name/boot-arch.json') - response = requests.put(url, headers=headers, files=files) + with open('/path/to/boot-arch.json', 'rb') as upload_file: + response = requests.put(url, headers=headers, data=upload_file) print response.content |