Skip to content

Commit

Permalink
fix: updated file path from 'infra' to 'cluster'
Browse files Browse the repository at this point in the history
Signed-off-by: Saranya-jena <[email protected]>
  • Loading branch information
Saranya-jena committed Jul 19, 2023
1 parent cca88c7 commit 3baffad
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions chaoscenter/graphql/server/pkg/chaos_infrastructure/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,23 +779,23 @@ func (in *infraService) GetInfraStats(ctx context.Context, projectID string) (*m
groupByInfraStatusStage := bson.D{
{
"$group", bson.D{
{"_id", "$is_active"},
{"count", bson.D{
{"$sum", 1},
}},
},
{"_id", "$is_active"},
{"count", bson.D{
{"$sum", 1},
}},
},
},
}

// Group by infra confirmed stage and count their total number by each group
groupByInfraConfirmedStage := bson.D{
{
"$group", bson.D{
{"_id", "$is_infra_confirmed"},
{"count", bson.D{
{"$sum", 1},
}},
},
{"_id", "$is_infra_confirmed"},
{"count", bson.D{
{"$sum", 1},
}},
},
},
}

Expand Down Expand Up @@ -1077,7 +1077,7 @@ func (in *infraService) GetManifest(token string) ([]byte, int, error) {
var respData []byte
if reqinfra.InfraScope == "cluster" {

respData, err = ManifestParser(reqinfra, "manifests/infra", &configurations)
respData, err = ManifestParser(reqinfra, "manifests/cluster", &configurations)
} else if reqinfra.InfraScope == "namespace" {
respData, err = ManifestParser(reqinfra, "manifests/namespace", &configurations)
} else {
Expand Down Expand Up @@ -1125,7 +1125,7 @@ func (in *infraService) GetManifestWithInfraID(infraID string, accessKey string)

var respData []byte
if reqinfra.InfraScope == clusterScope {
respData, err = ManifestParser(reqinfra, "manifests/infra", &configurations)
respData, err = ManifestParser(reqinfra, "manifests/cluster", &configurations)
} else if reqinfra.InfraScope == namespaceScope {
respData, err = ManifestParser(reqinfra, "manifests/namespace", &configurations)
} else {
Expand Down

0 comments on commit 3baffad

Please sign in to comment.