Merge "Replace deprecated readfp method with read_file"

This commit is contained in:
Zuul 2023-11-06 06:24:50 +00:00 committed by Gerrit Code Review
commit 3ae7a19664
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ def read_template_variables(variable_file=None, verbose=False,
# key-sensitive keys
if variable_file:
cp.optionxform = lambda option: option
cp.readfp(open(variable_file))
cp.read_file(open(variable_file))
variables = cp.defaults()
if scenario_args:
variables.update(scenario_args)