This commit is contained in:
Chris Lu 2021-08-03 09:32:31 -07:00
parent 3afbf04007
commit d2ddf1dbdb

View file

@ -71,13 +71,13 @@ func runUpload(cmd *Command, args []string) bool {
util.LoadConfiguration("security", false) util.LoadConfiguration("security", false)
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client") grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
defaultCollection, err := readMasterConfiguration(grpcDialOption, *upload.master) defaultReplication, err := readMasterConfiguration(grpcDialOption, *upload.master)
if err != nil { if err != nil {
fmt.Printf("upload: %v", err) fmt.Printf("upload: %v", err)
return false return false
} }
if *upload.replication == "" { if *upload.replication == "" {
*upload.replication = defaultCollection *upload.replication = defaultReplication
} }
if len(args) == 0 { if len(args) == 0 {