composer-cli: pytoml load() needs an open file not a string

Resolves: rhbz#1843704
This commit is contained in:
Brian C. Lane 2020-06-03 15:16:37 -07:00
parent b2f79ef4a3
commit b75a4e2e3c
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ def compose_start_v1(socket_path, api_version, args, show_json=False, testmode=0
config["upload"] = {"image_name": args[2]}
# profile TOML file (maybe)
try:
config["upload"].update(toml.load(args[3]))
config["upload"].update(toml.load(open(args[3])))
except toml.TomlError as e:
log.error(str(e))
return 1