Skip to content

Commit

Permalink
initialize stacks firt
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerebrovinny committed Nov 22, 2024
1 parent baa6573 commit a27c4d5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions internal/exec/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ func processCommandLineArgs(
) (schema.ConfigAndStacksInfo, error) {
var configAndStacksInfo schema.ConfigAndStacksInfo

// Initialize all map fields
configAndStacksInfo.ComponentSection = make(map[string]any)
configAndStacksInfo.ComponentVarsSection = make(map[string]any)
configAndStacksInfo.ComponentSettingsSection = make(map[string]any)
configAndStacksInfo.ComponentOverridesSection = make(map[string]any)
configAndStacksInfo.ComponentProvidersSection = make(map[string]any)
configAndStacksInfo.ComponentEnvSection = make(map[string]any)
configAndStacksInfo.ComponentBackendSection = make(map[string]any)
configAndStacksInfo.ComponentMetadataSection = make(map[string]any)

cmd.DisableFlagParsing = false

err := cmd.ParseFlags(args)
Expand Down Expand Up @@ -274,8 +284,6 @@ func ProcessStacks(
return configAndStacksInfo, errors.New(message)
}

configAndStacksInfo.StackFromArg = configAndStacksInfo.Stack

stacksMap, rawStackConfigs, err := FindStacksMap(cliConfig, false)
if err != nil {
return configAndStacksInfo, err
Expand Down

0 comments on commit a27c4d5

Please sign in to comment.