feat: exit code 2 on unmatched selectors

Along with the fix for the bug introduced via #217

Resolves #219
This commit is contained in:
Yusuke KUOKA
2018-08-24 11:40:30 +09:00
parent a5d42e741b
commit 3a16b7ed91
2 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -613,11 +613,11 @@ func (state *HelmState) FilterReleases(labels []string) error {
for _, r := range releaseSet {
filteredReleases = append(filteredReleases, r)
}
state.Releases = filteredReleases
if len(filteredReleases) == 0 {
state.logger.Debugf("specified selector did not match any releases in %s\n", state.FilePath)
return nil
}
state.Releases = filteredReleases
return nil
}