dragxd commited on
Commit
350c204
·
verified ·
1 Parent(s): 2ff1dd3

Update OneApi/deployment/host.py

Browse files
Files changed (1) hide show
  1. OneApi/deployment/host.py +6 -6
OneApi/deployment/host.py CHANGED
@@ -58,19 +58,19 @@ class Host:
58
  await database.add_log(
59
  user_id,
60
  project_id,
61
- print(f"Successfully cloned repo! Files found in repo: {len(ls.splitlines()) 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
- f"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 = 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