Use filerGroup for s3 buckets collection prefix (#4465)
* Use filerGroup for s3 buckets collection prefix * Fix templates * Remove flags * Remove s3CollectionPrefix
This commit is contained in:
@@ -184,3 +184,10 @@ func readNeedleStatus(grpcDialOption grpc.DialOption, sourceVolumeServer pb.Serv
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
func getCollectionName(commandEnv *CommandEnv, bucket string) string {
|
||||
if *commandEnv.option.FilerGroup != "" {
|
||||
return fmt.Sprintf("%s_%s", *commandEnv.option.FilerGroup, bucket)
|
||||
}
|
||||
return bucket
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user