mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix: review snapshot and post init migration logic (#158)
This commit is contained in:
parent
07d1eedae3
commit
20e3d3a15b
5 changed files with 206 additions and 11 deletions
|
@ -11,6 +11,8 @@ import (
|
|||
log "github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
// TODO: this file should be migrated to package/server-ce/pkg/endpoints
|
||||
|
||||
// IsLocalEndpoint returns true if this is a local environment(endpoint)
|
||||
func IsLocalEndpoint(endpoint *portainer.Endpoint) bool {
|
||||
return strings.HasPrefix(endpoint.URL, "unix://") ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue