From d2ddf1dbdbc788cf807fd12ac9f7151bd2d625bb Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 3 Aug 2021 09:32:31 -0700 Subject: [PATCH] typo --- weed/command/upload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/command/upload.go b/weed/command/upload.go index ccdec561f..9ae1befab 100644 --- a/weed/command/upload.go +++ b/weed/command/upload.go @@ -71,13 +71,13 @@ func runUpload(cmd *Command, args []string) bool { util.LoadConfiguration("security", false) grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client") - defaultCollection, err := readMasterConfiguration(grpcDialOption, *upload.master) + defaultReplication, err := readMasterConfiguration(grpcDialOption, *upload.master) if err != nil { fmt.Printf("upload: %v", err) return false } if *upload.replication == "" { - *upload.replication = defaultCollection + *upload.replication = defaultReplication } if len(args) == 0 {