Update OneApi/deployment/host.py
Browse files
OneApi/deployment/host.py
CHANGED
|
@@ -58,19 +58,19 @@ class Host:
|
|
| 58 |
await database.add_log(
|
| 59 |
user_id,
|
| 60 |
project_id,
|
| 61 |
-
|
| 62 |
-
|
| 63 |
|
| 64 |
if not await aiofiles.os.path.isfile(f"{repo_folder}/ElevenHost.yaml"):
|
| 65 |
await database.add_log(
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
)
|
| 70 |
return "ElevenHost.yaml not found"
|
| 71 |
|
| 72 |
async with aiofiles.open(f"{repo_folder}/ElevenHost.yaml", mode='r') as mano:
|
| 73 |
-
ctx = mano.read()
|
| 74 |
data = yaml.safe_load(ctx)
|
| 75 |
chk = await check_yaml(data)
|
| 76 |
|
|
|
|
| 58 |
await database.add_log(
|
| 59 |
user_id,
|
| 60 |
project_id,
|
| 61 |
+
f"Successfully clonned repo!, Files found in repo: {len(ls.split('\n')) if '\n' in ls else 0}"
|
| 62 |
+
)
|
| 63 |
|
| 64 |
if not await aiofiles.os.path.isfile(f"{repo_folder}/ElevenHost.yaml"):
|
| 65 |
await database.add_log(
|
| 66 |
+
user_id,
|
| 67 |
+
project_id,
|
| 68 |
+
"Error:\nCannot find ElevenHost.yaml on your repo"
|
| 69 |
)
|
| 70 |
return "ElevenHost.yaml not found"
|
| 71 |
|
| 72 |
async with aiofiles.open(f"{repo_folder}/ElevenHost.yaml", mode='r') as mano:
|
| 73 |
+
ctx = await mano.read()
|
| 74 |
data = yaml.safe_load(ctx)
|
| 75 |
chk = await check_yaml(data)
|
| 76 |
|