Skip to content

Commit

Permalink
Merge pull request #578 from kirby0025/update_documentation_version_l…
Browse files Browse the repository at this point in the history
…ookup

[DOC] Updating exemple for version lookup
  • Loading branch information
robin-checkmk authored Mar 13, 2024
2 parents 5b63d08 + b70ea20 commit 2c8fc59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/version_lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,14 @@ Examples

.. code-block:: yaml+jinja


- name: "Show Checkmk version"
debug:
msg: "Server version is {{ version }}"
vars:
version: "{{ lookup('checkmk.general.version',
server_url + '/' + site,
server_url=my_url,
site=my_site,
validate_certs=False,
automation_user=my_user,
automation_secret=my_secret
Expand Down
3 changes: 2 additions & 1 deletion plugins/lookup/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
msg: "Server version is {{ version }}"
vars:
version: "{{ lookup('checkmk.general.version',
server_url + '/' + site,
server_url=my_url,
site=my_site,
validate_certs=False,
automation_user=my_user,
automation_secret=my_secret
Expand Down

0 comments on commit 2c8fc59

Please sign in to comment.