Fix notes.txt problems
We were using a bad method to read the ingress values. It's not ensured by using the service names + checking the "ingress" key.
This commit is contained in:
@@ -242,7 +242,11 @@ func Convert(config ConvertOptions, dockerComposeFile ...string) {
|
||||
f.Write([]byte(readme))
|
||||
f.Close()
|
||||
|
||||
notes := extrafiles.NotesFile()
|
||||
services := make([]string, 0)
|
||||
for _, service := range project.Services {
|
||||
services = append(services, service.Name)
|
||||
}
|
||||
notes := extrafiles.NotesFile(services)
|
||||
f, err = os.Create(notesPath)
|
||||
if err != nil {
|
||||
fmt.Println(utils.IconFailure, err)
|
||||
|
Reference in New Issue
Block a user