From 1cdf6b2b72da7fa08a1892eeee1ddedbd45c1e3a Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Fri, 29 Mar 2019 12:01:34 +0100 Subject: [PATCH] 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 --- src/daemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.js b/src/daemon.js index 4e4c508b..343dd863 100644 --- a/src/daemon.js +++ b/src/daemon.js @@ -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 => {