Skip to content

Commit d9a4238

Browse files
committed
(PDB-5161) engine/required-by-projections: rely on parse-field
1 parent 141f5aa commit d9a4238

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/puppetlabs/puppetdb/query_eng/engine.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,10 +3067,7 @@
30673067
(remove (comp :query-only? val))
30683068
keys)))
30693069
;; Now we need just the base name, i.e. facts.kernel -> facts
3070-
basename #(let [path-or-field (parse/dotted-query->path %)]
3071-
(if (coll? path-or-field)
3072-
(first path-or-field)
3073-
path-or-field))
3070+
basename #(-> % parse/parse-field first :name)
30743071
required-joins (map #(get-in proj-info [% :join-deps])
30753072
(map basename fields))]
30763073
(when (some nil? required-joins)

0 commit comments

Comments
 (0)