Skip to content

Commit

Permalink
Send os to builder compute
Browse files Browse the repository at this point in the history
With arduino-create-agent 1.1.82 the info command return the
operating system in which the agent is installed.
We then send it to builder-api boards compute to obtain the
urls of the required tools for an upload.
This will allow create-agent in the future to be more simple
and to obtain the urls from builder-api rather than from the parsing
of the (multiple) package_index
  • Loading branch information
matteosuppo committed Mar 29, 2019
1 parent dc09a0a commit 1cdf6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default class Daemon {
// Fetch command line for the board
fetch(`${this.BOARDS_URL}/${target.board}/compute`, {
method: 'POST',
body: JSON.stringify({ action: 'upload', verbose })
body: JSON.stringify({ action: 'upload', verbose, os: this.agentInfo.os })
})
.then(result => result.json())
.then(uploadCommandInfo => {
Expand Down

0 comments on commit 1cdf6b2

Please sign in to comment.