Enables passing the autoinstall CLI to the server.

The server was prepared to receive this CLI option.
TUI was not. When not in dry-run that option had no effect.
This commit is contained in:
Carlos Nihelton 2022-04-05 18:12:47 -03:00
parent be9a064c0a
commit c2b6be3cd3
No known key found for this signature in database
GPG Key ID: 6FE346D245197E9A
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@ def make_client_args_parser():
parser.add_argument('--socket')
parser.add_argument('--answers')
parser.add_argument('--server-pid')
parser.add_argument('--autoinstall', action='store', dest='autoinstall')
parser.add_argument('--prefill',
dest='prefill',
help='Prefills UI models with data provided in'
@ -94,6 +95,9 @@ def main():
if opts.prefill:
server_args += ['--prefill='+opts.prefill]
if opts.autoinstall:
server_args += ['--autoinstall='+opts.autoinstall]
os.makedirs(server_output_dir, exist_ok=True)
server_stdout = open(os.path.join(server_output_dir, 'server-stdout'), 'w')
server_stderr = open(os.path.join(server_output_dir, 'server-stderr'), 'w')