mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 10:46:34 +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,
|
||||
);
|
||||
} else {
|
||||
exitIfNotLoggedIn();
|
||||
await exitIfNotLoggedIn();
|
||||
if (options.tail) {
|
||||
return balena.logs
|
||||
.subscribe(params.uuidOrDevice, { count: 100 })
|
||||
|
@ -263,7 +263,7 @@ export const ssh: CommandDefinition<
|
||||
}
|
||||
|
||||
// this will be a tunnelled SSH connection...
|
||||
exitIfNotLoggedIn();
|
||||
await exitIfNotLoggedIn();
|
||||
const uuid = await getOnlineTargetUuid(sdk, applicationOrDevice);
|
||||
let version: string | undefined;
|
||||
let id: number | undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user