(docs)(DOCUMENT-813) Fix errors in example
(docs)(DOCUMENT-813) Fix errors in example

.each doesn't change the result to store in the variable. It keeps
any changes/output isolated. Need .map to use the result outside
of the iterator per the example.

Also, no capital on `notify`.

rbrw/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,rbrw/puppetdb,rbrw/puppetdb,puppetlabs/puppetdb,rbrw/puppetdb,rbrw/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb