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:
parent
184ed2d71b
commit
9956f54c97
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue