From 2c646bea0be1621d4c65bbdcb87a3f7551c128f3 Mon Sep 17 00:00:00 2001 From: John Esmet Date: Mon, 5 Feb 2018 20:25:02 +0000 Subject: [PATCH] Do not warn when there are no charts if dependencies are present --- src/ankh/cmd/ankh/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ankh/cmd/ankh/main.go b/src/ankh/cmd/ankh/main.go index fa66d530..7e7cceeb 100644 --- a/src/ankh/cmd/ankh/main.go +++ b/src/ankh/cmd/ankh/main.go @@ -106,8 +106,8 @@ func execute(ctx *ankh.ExecutionContext) { if len(rootAnkhFile.Charts) > 0 { executeAnkhFile(rootAnkhFile) - } else { - ctx.Logger.Warningf("No charts specified inside %s, nothing to do", ctx.AnkhFilePath) + } else if len(dependencies) == 0 { + ctx.Logger.Warningf("No charts nor dependencies specified in ankh file %s, nothing to do", ctx.AnkhFilePath) } }