Skip to content

Commit

Permalink
Changing variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcleblanc2 committed Feb 21, 2024
1 parent b167745 commit f3840c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repo-converter/build/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def redact_password_from_list(args, password=None):
return args_without_password


def subprocess_run(args, password=None, std_in=None):
def subprocess_run(args, password=None, subprocess_stdin_input=None):

# Using the subprocess module
# https://docs.python.org/3/library/subprocess.html#module-subprocess
Expand All @@ -525,8 +525,8 @@ def subprocess_run(args, password=None, std_in=None):
# If password is provided to this function, feed it into the subprocess' stdin pipe
# Otherwise the input keyword arg is still set to the None type

if std_in:
finished_process = subprocess.run(args, capture_output=True, check=True, text=True, input=std_in)
if subprocess_stdin_input:
finished_process = subprocess.run(args, capture_output=True, check=True, text=True, input=subprocess_stdin_input)
else:
finished_process = subprocess.run(args, capture_output=True, check=True, text=True)

Expand Down

0 comments on commit f3840c0

Please sign in to comment.