def report_status(my_settings: settings.Settings, reason: str, status: str):
response_url_full = my_settings.pcf_pcfwaithandle
response_url, response_params = response_url_full.split('?')
response_for_waitcondition = build_payload(reason, status)
print("Writing to wait handle {}".format(response_url_full))
response = requests.put(
url=response_url, params=response_params,
data=str.encode(json.dumps(response_for_waitcondition))
)
print(response)
return 0
wait_condition.py 文件源码
python
阅读 77
收藏 0
点赞 0
评论 0
评论列表
文章目录