about summary refs log tree commit diff
path: root/templater
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-02-08T16·32+0100
committerVincent Ambo <tazjin@gmail.com>2017-02-08T16·42+0100
commitdd2fdd63e5c1fdaed0eb5116e32724068495fae7 (patch)
treebfe613e17f78b586c5dee327c662db89440b748a /templater
parent756a4c745d111e74c2c673009e14b14b1cd8141f (diff)
fix templater & ctx: Correctly check resource set parent
Diffstat (limited to 'templater')
-rw-r--r--templater/templater.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/templater/templater.go b/templater/templater.go
index 89d66ff38517..6ca7e6770a06 100644
--- a/templater/templater.go
+++ b/templater/templater.go
@@ -143,7 +143,7 @@ func applyLimits(rs *[]context.ResourceSet, include *[]string, exclude *[]string
 // Check whether an include/exclude string slice matches a resource set
 func matchesResourceSet(s *[]string, rs *context.ResourceSet) bool {
 	for _, r := range *s {
-		if r == rs.Name || (rs.Parent != nil && r == *rs.Parent) {
+		if r == rs.Name || r == rs.Parent {
 			return true
 		}
 	}