修正主函数中加载 YAML 文件的方式,确保正确读取文件内容
All checks were successful
Sync Container Images / sync-images (push) Successful in 2m1s

This commit is contained in:
远野千束 2025-04-17 20:47:21 +08:00
parent 158011247e
commit 945150d0ad

View File

@ -42,7 +42,9 @@ async def docker_push(image: str):
async def main():
# Load the YAML file
async with aiofiles.open('images.yaml', 'r') as file:
config = yaml.safe_load(file)
config = await file.read()
# Parse the YAML file
config = yaml.safe_load(config)
config = Config(**config)