superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.37k stars 226 forks source link

fix: if no personal org found, select first org in list #3588

Closed nbw closed 2 months ago

nbw commented 2 months ago

Change Summary

What and Why:

fixes an issue where a user has deleted their personal organization and running fly launch no longer works as expected. rather than error on not having a personal org, use the first org found instead.

How:

rather than error on not having a personal org, use the first org found instead.

fly launch

Scanning source code
Detected a Dockerfile app
Creating app in /Users/nathan/github/nbw/conway8

We're about to launch your app on Fly.io. Here's what you're getting:

Organization: nathan-second-org      (defaulting to 'nathan-second-org')
Name:         <unspecified>          (must be specified in UI)
Region:       Tokyo, Japan           (this is the fastest region for you)
App Machines: shared-cpu-1x, 1GB RAM (most apps need about 1GB of RAM)
Postgres:     <none>                 (not requested)
Redis:        <none>                 (not requested)
Sentry:       false                  (not requested)

the relevant line here is (defaulting to 'nathan-second-org')