Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions puppetdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def __init__(self, refresh):
'ssl_cert': self.config.get('ssl_cert') or None
}

if puppetdb_config['api_version'] == 4:
del puppetdb_config['api_version']

self.puppetdb = connect(**puppetdb_config)

self.cache_file = self.config.get('cache_file')
Expand Down
4 changes: 4 additions & 0 deletions puppetdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
# Regardless of whether or not group_by is set, the inventory will
# always return a group called 'all' with all the hosts in it.
#
# == Notes on api_version
# When set to 4, this will allow the use of pypuppetdb 2.x, which deprecated
# the api versions. If set to 4 with pypuppetdb 0.1.1 installed it will
# produce an invalid version error.
---
host: localhost
api_version: 3
Expand Down