mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 18:56:25 +00:00
Fix logged-in check in "logs" and "ssh" commands (async/await usage)
Change-type: patch Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
parent
2222a90884
commit
6376ac28d5
@ -164,7 +164,7 @@ export const logs: CommandDefinition<
|
|||||||
servicesToDisplay,
|
servicesToDisplay,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
exitIfNotLoggedIn();
|
await exitIfNotLoggedIn();
|
||||||
if (options.tail) {
|
if (options.tail) {
|
||||||
return balena.logs
|
return balena.logs
|
||||||
.subscribe(params.uuidOrDevice, { count: 100 })
|
.subscribe(params.uuidOrDevice, { count: 100 })
|
||||||
|
@ -263,7 +263,7 @@ export const ssh: CommandDefinition<
|
|||||||
}
|
}
|
||||||
|
|
||||||
// this will be a tunnelled SSH connection...
|
// this will be a tunnelled SSH connection...
|
||||||
exitIfNotLoggedIn();
|
await exitIfNotLoggedIn();
|
||||||
const uuid = await getOnlineTargetUuid(sdk, applicationOrDevice);
|
const uuid = await getOnlineTargetUuid(sdk, applicationOrDevice);
|
||||||
let version: string | undefined;
|
let version: string | undefined;
|
||||||
let id: number | undefined;
|
let id: number | undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user