Skip to content

Commit

Permalink
Allow fly pg connect to work with custom images (#3680)
Browse files Browse the repository at this point in the history
* Allow `fly pg connect` to work with custom images

* remove FLY_DEV check

* Revert "remove FLY_DEV check"

This reverts commit 3b6734c.
  • Loading branch information
benwaffle committed Jul 8, 2024
1 parent 8d1c191 commit 92b9ea9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/command/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func hasRequiredVersionOnMachines(machines []*fly.Machine, cluster, flex, standa
return fmt.Errorf("command is not compatible with this image")
}

if machine.ImageVersion() == "custom" {
continue
}

imageVersionStr := machine.ImageVersion()[1:]

imageVersion, err := version.NewVersion(imageVersionStr)
Expand Down

0 comments on commit 92b9ea9

Please sign in to comment.