api传入的body如下,有很多null,
{
"id": 1,
"systemName": null,
"systemState": null,
"functionalityDescription": null,
"domianWebsitePr": null,
"ipAddressWebsitePr": null,
"ipAddressAppPr": null,
"bmAddressAppPr": null,
"ipAddressWechatPr": null
}
python中需要对字段是否为空进行判断,通过以下代码可实现
if a["systemName"] is None:
XXX
2.检查Nginx配置文件
nginx -t -c /etc/nginx/nginx.conf
3.OCP中访问service
curl http://service-name.namespace.svc.cluster.local:port