Skip to content
Permalink
Browse files

fix panic when .domain is missing from a stage, as it is now optional.

…Closes #567
  • Loading branch information...
tj committed Feb 1, 2018
1 parent 7547c3a commit 25f45186482fb4d10fd7acf7360011abb506168f
Showing with 9 additions and 1 deletion.
  1. +1 −1 platform/lambda/lambda.go
  2. +4 −0 platform/lambda/stack/resources/resources.go
  3. +4 −0 platform/lambda/stack/stack.go
@@ -330,7 +330,7 @@ func (p *Platform) createCerts() error {

// request certs
for _, s := range p.config.Stages.List() {
if s == nil {
if s.Domain == "" {
continue
}

@@ -246,6 +246,10 @@ func api(c *Config, m Map) {
// Stages configuration.
func stages(c *Config, m Map) {
for _, s := range c.Stages.List() {
if s.Domain == "" {
continue
}

stage(c, s, m)
}
}
@@ -164,6 +164,10 @@ func (s *Stack) Show() error {

// stages
for _, stage := range s.config.Stages.List() {
if stage.Domain == "" {
continue
}

s.events.Emit("platform.stack.show.stage", event.Fields{
"name": stage.Name,
"domain": stage.Domain,

0 comments on commit 25f4518

Please sign in to comment.
You can’t perform that action at this time.