Skip to content

Commit a2f87ad

Browse files
authored
Fix use of get_sudo_password() with less arguments (#665)
* Fix args to get_sudo_password() in ssh.py * Fix args to get_sudo_password() in chroot.py * Fix args to get_sudo_password() in local.py
1 parent baee497 commit a2f87ad

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

pyinfra/api/connectors/chroot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ def run_shell_command(
6363

6464
if use_sudo_password:
6565
command_kwargs['use_sudo_password'] = get_sudo_password(
66-
state,
6766
host,
6867
use_sudo_password,
69-
run_shell_command=run_shell_command,
70-
put_file=put_file,
7168
)
7269

7370
chroot_directory = host.host_data['chroot_directory']

pyinfra/api/connectors/local.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ def run_shell_command(
6565

6666
if use_sudo_password:
6767
command_kwargs['use_sudo_password'] = get_sudo_password(
68-
state, host, use_sudo_password,
69-
run_shell_command=run_shell_command,
70-
put_file=put_file,
68+
host, use_sudo_password
7169
)
7270

7371
def execute_command():

pyinfra/api/connectors/ssh.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,7 @@ def run_shell_command(
271271

272272
if use_sudo_password:
273273
command_kwargs['use_sudo_password'] = get_sudo_password(
274-
state, host, use_sudo_password,
275-
run_shell_command=run_shell_command,
276-
put_file=put_file,
274+
host, use_sudo_password
277275
)
278276

279277
def execute_command():

0 commit comments

Comments
 (0)