Skip to content

Commit a28c310

Browse files
authored
Allow passing a list to tf_var_file (#65)
1 parent e6fcca2 commit a28c310

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tftest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ def parse_args(init_vars=None, tf_vars=None, targets=None, **kw):
150150
if targets:
151151
cmd_args += [("-target={}".format(t)) for t in targets]
152152
if kw.get('tf_var_file'):
153-
cmd_args.append('-var-file={}'.format(kw['tf_var_file']))
153+
tf_var_file = kw['tf_var_file']
154+
if isinstance(tf_var_file, list):
155+
for x in tf_var_file:
156+
cmd_args.append('-var-file={}'.format(x))
157+
else:
158+
cmd_args.append('-var-file={}'.format(tf_var_file))
154159
return cmd_args
155160

156161

0 commit comments

Comments
 (0)