mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-13 22:22:58 +00:00
Avoid AmbiguousApplication errors in device register when an id is used
Change-Type: patch Connects-To: #665
This commit is contained in:
parent
d316f67367
commit
a2635f47ee
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user