Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(exp-engine): .dot graph saved even if not requested
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Sep 28, 2023
1 parent 38e6e28 commit 60b31ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/werf/common/common.go
Expand Up @@ -328,6 +328,10 @@ func SetupDeployGraphPath(cmdData *CmdData, cmd *cobra.Command) {
}

func GetDeployGraphPath(cmdData *CmdData) string {
if strings.TrimSpace(*cmdData.DeployGraphPath) == "" {
return ""
}

switch ext := filepath.Ext(*cmdData.DeployGraphPath); ext {
case ".dot":
return *cmdData.DeployGraphPath
Expand Down

0 comments on commit 60b31ee

Please sign in to comment.