Skip to content

Commit

Permalink
MG-887 - Create Bootstrap, Invitations, and Journal CLI tests (#2352)
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene authored Jul 19, 2024
1 parent 66fe5f1 commit c4c037f
Show file tree
Hide file tree
Showing 6 changed files with 1,211 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cli/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var cmdBootstrap = []cobra.Command{
}
if args[0] == "config" {
var cfg mgxsdk.BootstrapConfig
if err := json.Unmarshal([]byte(args[0]), &cfg); err != nil {
if err := json.Unmarshal([]byte(args[1]), &cfg); err != nil {
logErrorCmd(*cmd, err)
return
}
Expand All @@ -102,11 +102,11 @@ var cmdBootstrap = []cobra.Command{
}
if args[0] == "connection" {
var ids []string
if err := json.Unmarshal([]byte(args[1]), &ids); err != nil {
if err := json.Unmarshal([]byte(args[2]), &ids); err != nil {
logErrorCmd(*cmd, err)
return
}
if err := sdk.UpdateBootstrapConnection(args[0], ids, args[2]); err != nil {
if err := sdk.UpdateBootstrapConnection(args[1], ids, args[3]); err != nil {
logErrorCmd(*cmd, err)
return
}
Expand Down
Loading

0 comments on commit c4c037f

Please sign in to comment.