Skip to content

Commit 43aad46

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 a627da5 commit 43aad46

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
@@ -115,7 +115,7 @@ export default class Daemon {
115115
// Fetch command line for the board
116116
fetch(`${this.BOARDS_URL}/${target.board}/compute`, {
117117
method: 'POST',
118-
body: JSON.stringify({ action: 'upload', verbose })
118+
body: JSON.stringify({ action: 'upload', verbose, os: this.agentInfo.os })
119119
})
120120
.then(result => result.json())
121121
.then(uploadCommandInfo => {

0 commit comments

Comments
 (0)