Skip to content

Commit

Permalink
Merge pull request #135 from shalb/helm-values
Browse files Browse the repository at this point in the history
hotfix states backward compatibility
  • Loading branch information
romanprog authored Aug 12, 2021
2 parents da23b66 + deec75f commit 917ecb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/modules/terraform/common/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ func (m *Module) LoadStateCommon(spec StateCommon, modKey string, p *project.Sta
m.projectPtr = &p.Project
m.dependencies = modDeps
m.backendPtr = bPtr
m.expectedOutputs = make(map[string]bool)
m.filesList = make(map[string][]byte)
m.specRaw = make(map[string]interface{})
m.markers = make(map[string]interface{})
Expand All @@ -130,6 +129,9 @@ func (m *Module) LoadStateCommon(spec StateCommon, modKey string, p *project.Sta
m.requiredProviders = mState.RequiredProvider
m.codeDir = filepath.Join(m.ProjectPtr().CodeCacheDir, m.Key())
m.expectedOutputs = mState.Outputs
if m.expectedOutputs == nil {
m.expectedOutputs = make(map[string]bool)
}
return nil
}

Expand Down

0 comments on commit 917ecb5

Please sign in to comment.