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:
Paulo Castro 2019-10-30 15:30:31 +00:00
parent 2222a90884
commit 6376ac28d5
2 changed files with 2 additions and 2 deletions

View File

@ -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 })

View File

@ -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;