Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: agent group config command output is inaccurate #8945

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions cli/ctl/agent_group_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func RegisterAgentGroupConfigCommand() *cobra.Command {
create := &cobra.Command{
Use: "create <agent-group ID> -f <filename>",
Short: "create config",
Example: "deepflow-ctl agent-group-config create -f deepflow-config.yaml",
Example: "deepflow-ctl agent-group-config create g-xxxxxx -f deepflow-config.yaml",
Run: func(cmd *cobra.Command, args []string) {
createAgentGroupConfig(cmd, args, createFilename)
},
Expand All @@ -62,7 +62,7 @@ func RegisterAgentGroupConfigCommand() *cobra.Command {
update := &cobra.Command{
Use: "update <agent-group ID> -f <filename>",
Short: "update agent-group config",
Example: "deepflow-ctl agent-group-config update -f deepflow-config.yaml",
Example: "deepflow-ctl agent-group-config update g-xxxxxx -f deepflow-config.yaml",
Run: func(cmd *cobra.Command, args []string) {
updateAgentGroupConfig(cmd, args, updateFilename)
},
Expand Down Expand Up @@ -188,6 +188,9 @@ func listAgentGroupConfig(cmd *cobra.Command, args []string, output string) {
for i := range response.Get("DATA").MustArray() {
agentGroupLcuuid := response.Get("DATA").GetIndex(i).Get("AGENT_GROUP_LCUUID")
if info, ok := vtapLcuuidToInfo[agentGroupLcuuid.MustString()]; ok {
if agentGroupShortUUID != "" && agentGroupShortUUID != info.shortUUID {
continue
}
tableItems = append(tableItems, []string{
info.name,
info.shortUUID,
Expand Down
Loading