mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Auto-merge for PR #711 via VersionBot
Avoid AmbiguousApplication errors in device register when an id is used
This commit is contained in:
commit
427664c729
@ -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/).
|
||||
|
||||
## v6.8.1 - 2017-11-09
|
||||
|
||||
* Avoid AmbiguousApplication errors in device register when an id is used #711 [Tim Perry]
|
||||
|
||||
## v6.8.0 - 2017-10-27
|
||||
|
||||
* Allow preloading jetson-tx2 images, improve flasher images detection and remove the --dont-detect-flasher-type-images option. #706 [Alexis Svinartchouk]
|
||||
|
@ -110,7 +110,7 @@ exports.register = {
|
||||
} else {
|
||||
console.info('Using provided device api key');
|
||||
}
|
||||
return resin.models.device.register(application.app_name, uuid, deviceApiKey);
|
||||
return resin.models.device.register(application.id, uuid, deviceApiKey);
|
||||
}).get('uuid').nodeify(done);
|
||||
}
|
||||
};
|
||||
|
@ -168,7 +168,7 @@ exports.register =
|
||||
console.info("Using generated device api key: #{deviceApiKey}")
|
||||
else
|
||||
console.info('Using provided device api key')
|
||||
return resin.models.device.register(application.app_name, uuid, deviceApiKey)
|
||||
return resin.models.device.register(application.id, uuid, deviceApiKey)
|
||||
)
|
||||
.get('uuid')
|
||||
.nodeify(done)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "resin-cli",
|
||||
"version": "6.8.0",
|
||||
"version": "6.8.1",
|
||||
"description": "The official resin.io CLI tool",
|
||||
"main": "./build/actions/index.js",
|
||||
"homepage": "https://github.com/resin-io/resin-cli",
|
||||
|
Loading…
x
Reference in New Issue
Block a user