File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,15 @@ var storesCreateFromCSVCmd = &cobra.Command{
286286 // parse properties
287287 var createStoreReqParameters api.CreateStoreFctArgs
288288 props := unmarshalPropertiesString (reqJson .S ("Properties" ).String ())
289+ storePasswd := reqJson .S ("Password" ).String ()
289290 reqJson .Delete ("Properties" ) // todo: why is this deleting the properties from the request json?
291+ var passwdParams * api.StorePasswordConfig
292+ if storePasswd != "" {
293+ reqJson .Delete ("Password" )
294+ passwdParams = & api.StorePasswordConfig {
295+ Value : & storePasswd ,
296+ }
297+ }
290298 mJSON := reqJson .String ()
291299 conversionError := json .Unmarshal ([]byte (mJSON ), & createStoreReqParameters )
292300
@@ -299,6 +307,7 @@ var storesCreateFromCSVCmd = &cobra.Command{
299307 return conversionError
300308 }
301309
310+ createStoreReqParameters .Password = passwdParams
302311 createStoreReqParameters .Properties = props
303312 log .Debug ().Msgf ("Request parameters: %v" , createStoreReqParameters )
304313
You can’t perform that action at this time.
0 commit comments