mirror: skip status message from excluded buckets (#5190)
This commit is contained in:
+5
-5
@@ -1086,11 +1086,6 @@ func runMirror(ctx context.Context, srcURL, dstURL string, cli *cli.Context, enc
|
||||
}
|
||||
}
|
||||
|
||||
mj.status.PrintMsg(mirrorMessage{
|
||||
Source: newSrcURL,
|
||||
Target: newTgtURL,
|
||||
})
|
||||
|
||||
if mj.opts.isFake {
|
||||
continue
|
||||
}
|
||||
@@ -1100,6 +1095,11 @@ func runMirror(ctx context.Context, srcURL, dstURL string, cli *cli.Context, enc
|
||||
continue
|
||||
}
|
||||
|
||||
mj.status.PrintMsg(mirrorMessage{
|
||||
Source: newSrcURL,
|
||||
Target: newTgtURL,
|
||||
})
|
||||
|
||||
// Bucket only exists in the source, create the same bucket in the destination
|
||||
if err := newDstClt.MakeBucket(ctx, cli.String("region"), false, withLock); err != nil {
|
||||
errorIf(err, "Unable to create bucket at `%s`.", newTgtURL)
|
||||
|
||||
Reference in New Issue
Block a user