From 6376ac28d53d9d6fedec484678f8bf75cdf20cf0 Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Wed, 30 Oct 2019 15:30:31 +0000 Subject: [PATCH] Fix logged-in check in "logs" and "ssh" commands (async/await usage) Change-type: patch Signed-off-by: Paulo Castro --- lib/actions/logs.ts | 2 +- lib/actions/ssh.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actions/logs.ts b/lib/actions/logs.ts index 03de3032..3cfa3383 100644 --- a/lib/actions/logs.ts +++ b/lib/actions/logs.ts @@ -164,7 +164,7 @@ export const logs: CommandDefinition< servicesToDisplay, ); } else { - exitIfNotLoggedIn(); + await exitIfNotLoggedIn(); if (options.tail) { return balena.logs .subscribe(params.uuidOrDevice, { count: 100 }) diff --git a/lib/actions/ssh.ts b/lib/actions/ssh.ts index f32393c9..07de9e84 100644 --- a/lib/actions/ssh.ts +++ b/lib/actions/ssh.ts @@ -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;