17 lines
476 B
Plaintext
17 lines
476 B
Plaintext
info('test .....{params_kw=}')
|
|
|
|
#endpoint=params_kw["endpoint"]
|
|
|
|
#if "_" not in endpoint and "-" not in endpoint:
|
|
# result_dict["info"] = "endpoint format not allowed"
|
|
# return result_dict
|
|
#debug(f"accept cpcc node: {params_kw=}")
|
|
try:
|
|
result_dict["data"] = await get_cluster_nodes_by_kubeconfig(params_kw)
|
|
result_dict["status"] = True
|
|
result_dict["info"] = "operate success"
|
|
except:
|
|
import traceback
|
|
debug(traceback.format_exc())
|
|
return result_dict
|