mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-06 19:06:41 +00:00
ssh,tunnel: Reduce the amount of application fields fetched
Halves the amout of application data retrieved. Change-type: patch
This commit is contained in:
parent
2e37536e7a
commit
05a96fa60e
@ -298,7 +298,9 @@ export async function getOnlineTargetDeviceUuid(
|
||||
try {
|
||||
logger.logDebug(`Fetching fleet ${fleetOrDevice}`);
|
||||
const { getApplication } = await import('./sdk');
|
||||
return await getApplication(sdk, fleetOrDevice);
|
||||
return await getApplication(sdk, fleetOrDevice, {
|
||||
$select: ['id', 'slug'],
|
||||
});
|
||||
} catch (err) {
|
||||
const { BalenaApplicationNotFound } = await import('balena-errors');
|
||||
if (instanceOf(err, BalenaApplicationNotFound)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user