Skip to content

Commit

Permalink
expr_form is depricated in salt backend client, replaced with tgt_type
Browse files Browse the repository at this point in the history
  • Loading branch information
gammauk authored and philpep committed Sep 29, 2021
1 parent 9474485 commit 1974005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testinfra/backend/salt.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_hosts(cls, host, **kwargs):
if any(c in host for c in "@*[?"):
client = salt.client.LocalClient()
if "@" in host:
hosts = client.cmd(host, "test.true", expr_form="compound").keys()
hosts = client.cmd(host, "test.true", tgt_type="compound").keys()
else:
hosts = client.cmd(host, "test.true").keys()
if not hosts:
Expand Down

0 comments on commit 1974005

Please sign in to comment.