log
parent
37b7a682fe
commit
bd2026a49f
|
@ -94,6 +94,7 @@ public class TianyiPhysicalProvider extends TianyiProvider {
|
||||||
jsonObject.put("cycleType", model.getName());
|
jsonObject.put("cycleType", model.getName());
|
||||||
jsonObject.put("orderCount", model.getOrderCount());
|
jsonObject.put("orderCount", model.getOrderCount());
|
||||||
Result result = doPost(apiUrl, jsonObject);
|
Result result = doPost(apiUrl, jsonObject);
|
||||||
|
log.info("物理机创建结果:" + JSON.toJSONString(result));
|
||||||
JSONObject returnObj = checkResult(result, "创建物理机");
|
JSONObject returnObj = checkResult(result, "创建物理机");
|
||||||
List<JSONObject> resources = returnObj.getJSONArray("resources").toJavaList(JSONObject.class);
|
List<JSONObject> resources = returnObj.getJSONArray("resources").toJavaList(JSONObject.class);
|
||||||
if (CollectionUtils.isEmpty(resources)) {
|
if (CollectionUtils.isEmpty(resources)) {
|
||||||
|
|
Loading…
Reference in New Issue