Skip to content

Commit a3247a6

Browse files
authored
Inventory plugins: remove deprecated disable_lookups parameter (which was set to its default anyway) (#165)
* Remove default value for keyword argument that is deprecated since ansible-core 2.19. * Add changelog fragment.
1 parent 072757e commit a3247a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- "robot inventory plugin - avoid using deprecated option when templating options (https://github.com/ansible-collections/community.hrobot/pull/165)."

plugins/module_utils/robot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ def raw_plugin_open_url_json(plugin, url, method='GET', timeout=10, data=None, h
8484
password = plugin.get_option('hetzner_password')
8585
if templar is not None:
8686
if templar.is_template(user):
87-
user = templar.template(variable=user, disable_lookups=False)
87+
user = templar.template(variable=user)
8888
if templar.is_template(password):
89-
password = templar.template(variable=password, disable_lookups=False)
89+
password = templar.template(variable=password)
9090
try:
9191
response = open_url(
9292
url,

0 commit comments

Comments
 (0)