From 6c219e2af8563e8665325988d18ac231d27a517a Mon Sep 17 00:00:00 2001 From: Hugo Montero Date: Fri, 31 Jan 2025 16:02:00 -0600 Subject: [PATCH] use sshPublicKey as options require --- src/cmd/setup-tachyon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/setup-tachyon.js b/src/cmd/setup-tachyon.js index fa3dfe4bc..20e54004f 100644 --- a/src/cmd/setup-tachyon.js +++ b/src/cmd/setup-tachyon.js @@ -468,7 +468,7 @@ Welcome to the Particle Tachyon setup! This interactive command: return data.registration_code; } - async _createConfigBlob({ registrationCode, systemPassword, wifi, sshKey }) { + async _createConfigBlob({ registrationCode, systemPassword, wifi, sshPublicKey }) { // Format the config and registration code into a config blob (JSON file, prefixed by the file size) const config = { registration_code: registrationCode, @@ -479,8 +479,8 @@ Welcome to the Particle Tachyon setup! This interactive command: config.wifi = wifi; } - if (sshKey) { - config.ssh_key = sshKey; + if (sshPublicKey) { + config.ssh_key = sshPublicKey; } // Write config JSON to a temporary file (generate a filename with the temp npm module)