18 lines
511 B
Plaintext
18 lines
511 B
Plaintext
async def cpcluster_update(ns={}):
|
|
db = DBPools()
|
|
async with db.sqlorContext('kboss') as sor:
|
|
try:
|
|
await sor.U('cpcluster', ns)
|
|
return {
|
|
'status': True,
|
|
'msg': '算力集群更新成功'
|
|
}
|
|
except Exception as e:
|
|
return {
|
|
'status': False,
|
|
'msg': '算力集群更新错误, %s' % str(e)
|
|
}
|
|
|
|
ret = await cpcluster_update(params_kw)
|
|
return ret
|
|
|