From 91a385b87dac5a8435c5f53e572aaaa76a89dfaa Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 22 Mar 2017 23:19:58 -0400 Subject: [PATCH] etcd doc tests --- lib/ansible/plugins/lookup/etcd.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/plugins/lookup/etcd.py b/lib/ansible/plugins/lookup/etcd.py index a7fb467092..792cda6afb 100644 --- a/lib/ansible/plugins/lookup/etcd.py +++ b/lib/ansible/plugins/lookup/etcd.py @@ -27,20 +27,21 @@ DOCUMENTATION: _raw: description: - the list of keys to lookup on the etcd server - type: string + type: list + element_type: string required: True _etcd_url: description: - Environment variable with the url for the etcd server default: 'http://127.0.0.1:4001' env_vars: - - ANSIBLE_ETCD_URL + - name: ANSIBLE_ETCD_URL _etcd_version: description: - Environment variable with the etcd protocol version default: 'v1' env_vars: - - ANSIBLE_ETCD_VERSION + - name: ANSIBLE_ETCD_VERSION EXAMPLES: - name: "a value from a locally running etcd" debug: msg={{ lookup('etcd', 'foo') }}