fix templater & ctx: Correctly check resource set parent

This commit is contained in:
Vincent Ambo 2017-02-08 17:32:19 +01:00
parent 756a4c745d
commit dd2fdd63e5
2 changed files with 4 additions and 3 deletions

View file

@ -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
}
}