Skip to content

Commit

Permalink
use sshPublicKey as options require
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed Feb 4, 2025
1 parent f9e469f commit 6c219e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/setup-tachyon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down

0 comments on commit 6c219e2

Please sign in to comment.