Fix compatibility with PuppetDB 2.1
Merge pull request #8 from dalen/puppetdb21

Fix compatibility with PuppetDB 2.1