fix: correct issue with assignment to nil map

This commit is contained in:
Jose Diaz-Gonzalez
2021-07-31 23:00:37 -04:00
parent 772e4286f2
commit 3fe10efd09

View File

@@ -541,6 +541,10 @@ func injectDokkuScale(appName string, image string) error {
return err
}
if appJSON.Formation == nil {
appJSON.Formation = make(map[string]Formation)
}
for _, line := range lines {
if line == "" || strings.HasPrefix(line, "#") {
continue