fix: correct issue with assignment to nil map

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-07-31 23:00:37 -04:00
1 parent 772e4286f2
commit 3fe10efd09
1 file changed
+4
+4
View File
@@ -541,6 +541,10 @@ func injectDokkuScale(appName string, image string) error {
return err return err
} }
if appJSON.Formation == nil {
appJSON.Formation = make(map[string]Formation)
}
for _, line := range lines { for _, line := range lines {
if line == "" || strings.HasPrefix(line, "#") { if line == "" || strings.HasPrefix(line, "#") {
continue continue