Auto-merge for PR #458 via VersionBot

Fix provisioning key exchange by passing apikey in the request
This commit is contained in:
resin-io-versionbot[bot] 2017-06-26 14:32:58 +00:00 committed by GitHub
commit a9e777727c
3 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## v4.4.2 - 2017-06-26
* Fix provisioning key exchange by passing apikey in the request [Pablo Carranza Velez]
## v4.4.1 - 2017-06-24
* Make cleanup in jenkins build less aggressive, but remove all created tags [Pablo Carranza Velez]

View File

@ -1,7 +1,7 @@
{
"name": "resin-supervisor",
"description": "This is resin.io's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as Resin's API informs it to.",
"version": "4.4.1",
"version": "4.4.2",
"license": "Apache-2.0",
"repository": {
"type": "git",

View File

@ -65,7 +65,7 @@ exchangeKey = ->
if not device?
throw new ExchangeKeyError("Couldn't fetch device with provisioning key")
# We found the device, we can try to generate a working device key for it
request.postAsync("#{config.apiEndpoint}/api-key/device/#{device.id}/device-key")
request.postAsync("#{config.apiEndpoint}/api-key/device/#{device.id}/device-key?apikey=#{userConfig.apiKey}")
.spread (res, body) ->
if res.status != 200
throw new ExchangeKeyError("Couldn't generate device key with provisioning key")