File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -530,12 +530,13 @@ func getOrCreateEphemeralShellApp(ctx context.Context, client flyutil.Client) (*
530530 }
531531
532532 if appc == nil {
533+ shellAppName := fmt .Sprintf ("flyctl-interactive-shells-%s-%d" , strings .ToLower (org .ID ), rand .Intn (1_000_000 ))
534+ shellAppName = strings .TrimRight (shellAppName [:min (len (shellAppName ), 63 )], "-" )
533535 appc , err = client .CreateApp (ctx , fly.CreateAppInput {
534536 OrganizationID : org .ID ,
535- // i 'll never find love again like the kind you give like the kind you send
536- Name : fmt . Sprintf ( "flyctl-interactive-shells-%s-%d" , strings . ToLower ( org . ID ), rand . Intn ( 1_000_000 )) ,
537+ // I 'll never find love again like the kind you give like the kind you send
538+ Name : shellAppName ,
537539 })
538-
539540 if err != nil {
540541 return nil , fmt .Errorf ("create interactive shell app: %w" , err )
541542 }
You can’t perform that action at this time.
0 commit comments