blablacar / ggn

Link container builds with envs to end up into low level orchestration
35 stars 9 forks source link

Panix on malformed Attr yaml #62

Open nyodas opened 8 years ago

nyodas commented 8 years ago

TRACE

panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 1 [running]:
panic(0x76fb20, 0xc8206c8e80)
    /usr/lib/go/src/runtime/panic.go:481 +0x3e6
github.com/blablacar/ggn/vendor/github.com/blablacar/attributes-merger/attributes.ProcessOverride(0xc8206f7350, 0xc8206f7470)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/vendor/github.com/blablacar/attributes-merger/attributes/merger.go:58 +0x328
github.com/blablacar/ggn/vendor/github.com/blablacar/attributes-merger/attributes.MergeAttributesFilesForMap(0xc8206f7350, 0xc820797000, 0x1, 0x1, 0x1)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/vendor/github.com/blablacar/attributes-merger/attributes/merger.go:40 +0x34f
github.com/blablacar/ggn/work.(*Service).loadAttributes(0xc82087a780)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/work/service.go:252 +0x24a
github.com/blablacar/ggn/work.NewService(0xc8206c8980, 0x35, 0xc8203475f6, 0x7, 0xc8202b9620, 0x2c, 0xc820177764, 0x8, 0xc8202b95f0, 0xc8202e10b0, ...)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/work/service.go:66 +0x4d5
github.com/blablacar/ggn/work.Env.LoadService(0xc8202b9620, 0x2c, 0xc820177764, 0x8, 0xc8202b95f0, 0xc8202e10b0, 0xc82026fe00, 0x7e, 0xc8202dbc98, 0x4, ...)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/work/env.go:113 +0x160
github.com/blablacar/ggn/commands.prepareEnvCommands(0xc82026f800, 0x0)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/commands/prepare-env.go:56 +0xb00
github.com/blablacar/ggn/commands.loadEnvCommandsReturnNewRoot.func1(0xc82030e340, 0xced828, 0x0, 0x0)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/commands/prepare.go:26 +0x36
github.com/blablacar/ggn/vendor/github.com/spf13/cobra.(*Command).execute(0xc82030e340, 0xced828, 0x0, 0x0, 0x0, 0x0)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/vendor/github.com/spf13/cobra/command.go:477 +0x3f4
github.com/blablacar/ggn/vendor/github.com/spf13/cobra.(*Command).Execute(0xc820194340, 0x0, 0x0)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/vendor/github.com/spf13/cobra/command.go:551 +0x46a
github.com/blablacar/ggn/commands.Execute(0x0, 0x0, 0xa07558, 0xa, 0xa09170, 0x17)
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/commands/ggn.go:53 +0x6b9
main.main()
    /home/n0rad/Work/go/src/github.com/blablacar/ggn/main.go:16 +0xce```

<

yaml

default:
---
  kube:
    ip_range: 10.100.0.0/16