From c0db43394fe9e57c7ffe9d6d074e70c226245706 Mon Sep 17 00:00:00 2001 From: venkat k Date: Wed, 5 Jun 2024 01:27:17 +0530 Subject: [PATCH] fix listing apps with cli --- capten/agent/internal/api/agent_cluster_apps.go | 2 +- capten/common-pkg/capten-store/app_config_store.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/capten/agent/internal/api/agent_cluster_apps.go b/capten/agent/internal/api/agent_cluster_apps.go index dbceab25..92b4c873 100644 --- a/capten/agent/internal/api/agent_cluster_apps.go +++ b/capten/agent/internal/api/agent_cluster_apps.go @@ -154,7 +154,7 @@ func (a *Agent) DeployDefaultApps(ctx context.Context, request *agentpb.DeployDe return nil, fmt.Errorf("not implemented") } -func (a *Agent) GetClusterDefaultApps(ctx context.Context, request *agentpb.GetDefaultAppsStatusRequest) ( +func (a *Agent) GetDefaultAppsStatus(ctx context.Context, request *agentpb.GetDefaultAppsStatusRequest) ( *agentpb.GetDefaultAppsStatusResponse, error) { return nil, fmt.Errorf("not implemented") } diff --git a/capten/common-pkg/capten-store/app_config_store.go b/capten/common-pkg/capten-store/app_config_store.go index 59a5cf4b..9b8c1dd0 100644 --- a/capten/common-pkg/capten-store/app_config_store.go +++ b/capten/common-pkg/capten-store/app_config_store.go @@ -112,7 +112,7 @@ func (a *Store) GetAllApps() ([]*agentpb.SyncAppData, error) { return nil, fmt.Errorf("failed to fetch apps: %v", err.Error()) } - var appData []*agentpb.SyncAppData + appData := []*agentpb.SyncAppData{} for _, ac := range appConfigs { overrideValues, err := base64.StdEncoding.DecodeString(ac.OverrideValues) if err != nil {