mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Wire token param into consul_api #2124 * Update changelogs/fragments/2124-consul_kv-pass-token.yml Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * #2124 renamed release fragment to match pr, removed parse_params. * putting look back in, do some linting #2124 * try more linting * linting * try overwriting defaults in parse_params with get_option vals, instead of removing that function completely. * Revert "back to start, from 2nd approach: allow keyword arguments via parse_params for compatibility." This reverts commit748be8e366
. * Revert " linting" This reverts commit1d57374c3e
. * Revert " try more linting" This reverts commit91c8d06e6a
. * Revert "putting look back in, do some linting #2124" This reverts commit87eeec7180
. * Revert " #2124 renamed release fragment to match pr, removed parse_params." This reverts commitd2869b2f22
. * Revert "Update changelogs/fragments/2124-consul_kv-pass-token.yml" This reverts commitc50b1cf9d4
. * Revert "Wire token param into consul_api #2124" This reverts commitb60b6433a8
. * minimal chnages for this PR relative to current upstream. * superfluous newline in changlog fragment. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
1a4af9bfc3
commit
0e6d70697c
2 changed files with 8 additions and 4 deletions
4
changelogs/fragments/2126-consul_kv-pass-token.yml
Normal file
4
changelogs/fragments/2126-consul_kv-pass-token.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
bugfixes:
|
||||
- consul_kv lookup plugin - allow to set ``recurse``, ``index``, ``datacenter`` and ``token`` as keyword arguments
|
||||
(https://github.com/ansible-collections/community.general/issues/2124).
|
|
@ -171,10 +171,10 @@ class LookupModule(LookupBase):
|
|||
|
||||
paramvals = {
|
||||
'key': params[0],
|
||||
'token': None,
|
||||
'recurse': False,
|
||||
'index': None,
|
||||
'datacenter': None
|
||||
'token': self.get_option('token'),
|
||||
'recurse': self.get_option('recurse'),
|
||||
'index': self.get_option('index'),
|
||||
'datacenter': self.get_option('datacenter')
|
||||
}
|
||||
|
||||
# parameters specified?
|
||||
|
|
Loading…
Reference in a new issue