stages/containers.storage.conf: support pytoml

RHEL 8 only has the old pytoml library, so we need to support that
as well. Try falling back if importing `toml` fails.
This commit is contained in:
Christian Kellner 2022-07-22 16:36:12 +02:00
parent 184ed2d71b
commit 9956f54c97

View file

@ -12,7 +12,11 @@ import os
import sys
from typing import Dict
import toml
try:
import toml
except ModuleNotFoundError:
import pytoml as toml
import osbuild.api