Skip to content

Commit

Permalink
update label from string to map[string]string
Browse files Browse the repository at this point in the history
  • Loading branch information
hippo-an committed Sep 25, 2024
1 parent 32d9bc1 commit 5aabe87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/core/load/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ func (l *LoadService) getAndDefaultMci(ctx context.Context, antVmCommonSpec, ant
dynamicMciArg := tumblebug.DynamicMciReq{
Description: antMciDescription,
InstallMonAgent: antInstallMonAgent,
Label: antMciLabel,
Label: map[string]string{"label": "DynamicMci,AntDefault"},
Name: antMciId,
SystemLabel: "",
VM: []tumblebug.DynamicVmReq{
Expand Down
12 changes: 6 additions & 6 deletions internal/infra/outbound/tumblebug/req.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ type DynamicVmReq struct {
}

type DynamicMciReq struct {
Description string `json:"description"`
InstallMonAgent string `json:"installMonAgent"`
Label string `json:"label"`
Name string `json:"name"`
SystemLabel string `json:"systemLabel"`
VM []DynamicVmReq `json:"vm"`
Description string `json:"description"`
InstallMonAgent string `json:"installMonAgent"`
Label map[string]string `json:"label"`
Name string `json:"name"`
SystemLabel string `json:"systemLabel"`
VM []DynamicVmReq `json:"vm"`
}

0 comments on commit 5aabe87

Please sign in to comment.