mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 10:46:34 +00:00
devices: Don't truncate device UUID to 7 chars when --json is used
Change-type: patch
This commit is contained in:
parent
0bae6546f2
commit
aae6aff3e9
@ -101,7 +101,7 @@ export default class DevicesCmd extends Command {
|
||||
const belongsToApplication = device.belongs_to__application as Application[];
|
||||
device.application_name = belongsToApplication?.[0]?.app_name || null;
|
||||
|
||||
device.uuid = device.uuid.slice(0, 7);
|
||||
device.uuid = options.json ? device.uuid : device.uuid.slice(0, 7);
|
||||
|
||||
device.device_type = device.is_of__device_type?.[0]?.slug || null;
|
||||
return device;
|
||||
|
Loading…
Reference in New Issue
Block a user