From b79d8a201bf178d977063acfc1e197f6080cd187 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt <79086712+danischm@users.noreply.github.com> Date: Thu, 27 Apr 2023 19:35:22 +0200 Subject: [PATCH] Add support for parallelism command argument --- tftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tftest.py b/tftest.py index a7767c7..059135f 100644 --- a/tftest.py +++ b/tftest.py @@ -138,6 +138,8 @@ def parse_args(init_vars=None, tf_vars=None, targets=None, **kw): cmd_args += ['-state', kw['state']] if kw.get('upgrade'): cmd_args.append('-upgrade') + if kw.get('parallelism'): + cmd_args += ['-parallelism={}'.format(kw['parallelism'])] if isinstance(init_vars, dict): cmd_args += [ '-backend-config={}={}'.format(k, v) for k, v in init_vars.items()