forked from TrueCloudLab/frostfs-node
[#483] cli: Fix `object put` cmd with flag `--prepare-locally`
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>logs-linter
parent
4c248d573e
commit
b520a3049e
|
@ -105,6 +105,7 @@ func putObject(cmd *cobra.Command, _ []string) {
|
||||||
|
|
||||||
var prm internalclient.PutObjectPrm
|
var prm internalclient.PutObjectPrm
|
||||||
if prepareLocally, _ := cmd.Flags().GetBool(prepareLocallyFlag); prepareLocally {
|
if prepareLocally, _ := cmd.Flags().GetBool(prepareLocallyFlag); prepareLocally {
|
||||||
|
prm.SetClient(internalclient.GetSDKClientByFlag(cmd, pk, commonflags.RPC))
|
||||||
prm.PrepareLocally()
|
prm.PrepareLocally()
|
||||||
} else {
|
} else {
|
||||||
ReadOrOpenSession(cmd, &prm, pk, cnr, nil)
|
ReadOrOpenSession(cmd, &prm, pk, cnr, nil)
|
||||||
|
|
Loading…
Reference in New Issue