Skip to content

Commit 1cdf6b2

Browse files
committed
Send os to builder compute
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
1 parent dc09a0a commit 1cdf6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default class Daemon {
119119
// Fetch command line for the board
120120
fetch(`${this.BOARDS_URL}/${target.board}/compute`, {
121121
method: 'POST',
122-
body: JSON.stringify({ action: 'upload', verbose })
122+
body: JSON.stringify({ action: 'upload', verbose, os: this.agentInfo.os })
123123
})
124124
.then(result => result.json())
125125
.then(uploadCommandInfo => {

0 commit comments

Comments
 (0)