Skip to content

Commit 45b8090

Browse files
authored
Merge pull request #97 from ipfs/fix/null-bootstrappers
7-to-8: allow Bootstrappers to be nil/non-existing.
2 parents 593c0c7 + 2e3ebb8 commit 45b8090

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ipfs-7-to-8/migration/config_conv.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77
"io/ioutil"
88
"os"
99
"strings"
10+
11+
log "github.com/ipfs/fs-repo-migrations/stump"
1012
)
1113

1214
var (
@@ -74,7 +76,9 @@ func convert(in io.Reader, out io.Writer, convFunc convFunc) error {
7476
if bootstrapi == nil {
7577
bootstrapi, _ := confMap["bootstrap"].([]interface{})
7678
if bootstrapi == nil {
77-
return fmt.Errorf("Bootstrap field missing or of the wrong type")
79+
log.Log("Bootstrap field missing or of the wrong type")
80+
log.Log("Nothing to migrate")
81+
return nil
7882
}
7983
}
8084
bootstrap := make([]string, len(bootstrapi))

0 commit comments

Comments
 (0)