diff --git a/src/commands/device/os-update.ts b/src/commands/device/os-update.ts index e75ad29ab..da993663c 100644 --- a/src/commands/device/os-update.ts +++ b/src/commands/device/os-update.ts @@ -69,15 +69,19 @@ export default class DeviceOsUpdateCmd extends Command { const sdk = getBalenaSdk(); // Get device info - const { uuid, is_of__device_type, os_version, os_variant } = - (await sdk.models.device.get(params.uuid, { - $select: ['uuid', 'os_version', 'os_variant'], - $expand: { - is_of__device_type: { - $select: 'slug', - }, + const { + // uuid, + is_of__device_type, + os_version, + os_variant, + } = (await sdk.models.device.get(params.uuid, { + $select: ['uuid', 'os_version', 'os_variant'], + $expand: { + is_of__device_type: { + $select: 'slug', }, - })) as DeviceWithDeviceType; + }, + })) as DeviceWithDeviceType; // Get current device OS version const currentOsVersion = sdk.models.device.getOsVersion({ @@ -173,18 +177,18 @@ export default class DeviceOsUpdateCmd extends Command { 'Host OS updates require a device restart when they complete. Are you sure you want to proceed?', ); - await sdk.models.device - .startOsUpdate(uuid, targetOsVersion, { - runDetached: true, - }) - .then(() => { - console.log( - `The balena OS update has started. You can keep track of the progress via the dashboard.\n` + - `To open the dashboard page related to a device via the CLI, you can use \`balena device UUID --view\``, - ); - }) - .catch((error) => { - console.error(`Failed to start OS update for device ${uuid}:`, error); - }); + // await sdk.models.device + // .startOsUpdate(uuid, targetOsVersion, { + // runDetached: true, + // }) + // .then(() => { + // console.log( + // `The balena OS update has started. You can keep track of the progress via the dashboard.\n` + + // `To open the dashboard page related to a device via the CLI, you can use \`balena device UUID --view\``, + // ); + // }) + // .catch((error) => { + // console.error(`Failed to start OS update for device ${uuid}:`, error); + // }); } }