Skip to content

Commit

Permalink
fix pool list/create (#1548)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkickr authored and kushalmalani committed Feb 13, 2024
1 parent ff7085a commit 048286d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cloud/deployment/inspect/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,16 @@ func ReturnSpecifiedValue(wsID, deploymentName, deploymentID string, astroPlatfo
if err != nil {
return nil, err
}
// create a map for deployment.alert_emails, deployment.worker_queues and deployment.environment_variables
cluster, err := deployment.CoreGetCluster("", *requestedDeployment.ClusterId, astroPlatformCore)
if err != nil {
return nil, err
}
nodePools := []astroplatformcore.NodePool{}
if cluster.NodePools != nil {
nodePools = *cluster.NodePools
// create a map for deployment.alert_emails, deployment.worker_queues and deployment.environment_variables
if requestedDeployment.ClusterId != nil {
cluster, err := deployment.CoreGetCluster("", *requestedDeployment.ClusterId, astroPlatformCore)
if err != nil {
return nil, err
}
if cluster.NodePools != nil {
nodePools = *cluster.NodePools
}
}
additionalMap = getAdditionalNullableFields(&requestedDeployment, nodePools)
// create a map for the entire deployment
Expand Down

0 comments on commit 048286d

Please sign in to comment.