Merge pull request #312 from harshavardhana/pr_out_build_fix
This commit is contained in:
@@ -18,7 +18,7 @@ package main
|
||||
|
||||
import (
|
||||
"github.com/minio-io/cli"
|
||||
"github.com/minio-io/mc/pkg/client/s3"
|
||||
"github.com/minio-io/mc/pkg/client"
|
||||
"github.com/minio-io/mc/pkg/console"
|
||||
"github.com/minio-io/minio/pkg/iodine"
|
||||
"github.com/minio-io/minio/pkg/utils/log"
|
||||
@@ -53,7 +53,7 @@ func doMakeBucketCmd(ctx *cli.Context) {
|
||||
console.Fatalln(err)
|
||||
}
|
||||
|
||||
if !s3.IsValidBucketName(bucket) {
|
||||
if !client.IsValidBucketName(bucket) {
|
||||
log.Debug.Println(iodine.New(err, nil))
|
||||
console.Fatalln(errInvalidbucket)
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ func TestValidBucketNames(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, bt := range m {
|
||||
got := IsValidBucketName(bt.in)
|
||||
got := client.IsValidBucketName(bt.in)
|
||||
if got != bt.want {
|
||||
t.Errorf("func(%q) = %v; want %v", bt.in, got, bt.want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user