修正主函数中加载 YAML 文件的方式,确保正确读取文件内容
All checks were successful
Sync Container Images / sync-images (push) Successful in 2m1s
All checks were successful
Sync Container Images / sync-images (push) Successful in 2m1s
This commit is contained in:
parent
158011247e
commit
945150d0ad
4
sync.py
4
sync.py
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user