From f0d60698d532cbc38b0580e6866a63f09c0d69ec Mon Sep 17 00:00:00 2001 From: Miguel Campos Date: Fri, 23 Feb 2024 17:38:58 -0800 Subject: [PATCH] clean up --- src/commands/ssh.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/commands/ssh.ts b/src/commands/ssh.ts index 349d974..899b9ce 100644 --- a/src/commands/ssh.ts +++ b/src/commands/ssh.ts @@ -27,11 +27,6 @@ import { getDoc, onSnapshot } from "firebase/firestore"; import { pick } from "lodash"; import yargs from "yargs"; -/** Maximum amount of time to wait after access is approved to wait for access - * to be configured - */ -const GRANT_TIMEOUT_MILLIS = 60e3; - type SshCommandArgs = { instance: string; command?: string; @@ -39,6 +34,11 @@ type SshCommandArgs = { arguments: string[]; }; +/** Maximum amount of time to wait after access is approved to wait for access + * to be configured + */ +const GRANT_TIMEOUT_MILLIS = 60e3; + export const sshCommand = (yargs: yargs.Argv) => yargs.command( "ssh [command [arguments..]]", @@ -151,7 +151,6 @@ const ssh = async (args: yargs.ArgumentsCamelCase) => { const { id, isPreexisting } = response; if (!isPreexisting) print2("Waiting for access to be provisioned"); const requestData = await waitForProvisioning(authn, id); - await ssm(authn, { ...requestData, id,