add lookups to config system (#33026)

* add lookups to config system

use etcd as proof of concept

* some doc updates
This commit is contained in:
Brian Coca 2017-11-20 09:24:10 -05:00 committed by GitHub
parent 53cbc9f6ee
commit 6bca5e5a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 32 deletions

View file

@ -210,7 +210,7 @@ class PluginLoader:
type_name = get_plugin_class(self.class_name)
# FIXME: expand from just connection and callback
if type_name in ('callback', 'connection', 'inventory'):
if type_name in ('callback', 'connection', 'inventory', 'lookup'):
dstring = read_docstring(path, verbose=False, ignore_errors=False)
if dstring.get('doc', False):