From 9cc3834ebc0ba9090ef5f134c4d3de899ab8c3ba Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Fri, 12 Jun 2020 23:42:28 -0700 Subject: [PATCH] eksconfig: fix empty CFN YAML file path Signed-off-by: Gyuho Lee --- eksconfig/config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eksconfig/config.go b/eksconfig/config.go index 9703ee667..00c792ca2 100644 --- a/eksconfig/config.go +++ b/eksconfig/config.go @@ -1093,6 +1093,12 @@ func (cfg *Config) validateConfig() error { case false: // use existing one } + if cfg.Status == nil { + cfg.Status = &Status{Up: false} + } + if cfg.Status.ClusterCFNStackYAMLFilePath == "" { + cfg.Status.ClusterCFNStackYAMLFilePath = strings.ReplaceAll(cfg.ConfigPath, ".yaml", "") + ".cluster.cfn.yaml" + } return nil }