Skip to content

Commit 1974005

Browse files
gammaukphilpep
authored andcommitted
expr_form is depricated in salt backend client, replaced with tgt_type
1 parent 9474485 commit 1974005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testinfra/backend/salt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_hosts(cls, host, **kwargs):
5454
if any(c in host for c in "@*[?"):
5555
client = salt.client.LocalClient()
5656
if "@" in host:
57-
hosts = client.cmd(host, "test.true", expr_form="compound").keys()
57+
hosts = client.cmd(host, "test.true", tgt_type="compound").keys()
5858
else:
5959
hosts = client.cmd(host, "test.true").keys()
6060
if not hosts:

0 commit comments

Comments
 (0)