소스 검색

if listNode response is not JSON and starts with Invalid, then node is not found

tags/v0.2.0
Jonathan Cobb 5 년 전
부모
커밋
23440af328
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      bubble-server/src/main/java/bubble/cloud/compute/vultr/VultrDriver.java

+ 1
- 1
bubble-server/src/main/java/bubble/cloud/compute/vultr/VultrDriver.java 파일 보기

@@ -9,7 +9,6 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.cobbzilla.util.handlebars.HandlebarsUtil;
import org.cobbzilla.util.http.HttpRequestBean;
import org.cobbzilla.util.http.HttpResponseBean;

@@ -262,6 +261,7 @@ public class VultrDriver extends ComputeServiceDriverBase {
public BubbleNode listNode(BubbleNode node) {
final HttpRequestBean listServerRequest = auth(new HttpRequestBean(POLL_SERVER_URL+node.getTag(TAG_INSTANCE_ID)));
final HttpResponseBean listResponse = listServerRequest.curl();
if (listResponse.getEntityString().startsWith("Invalid ")) return null;
switch (listResponse.getStatus()) {
case OK:
try {


불러오는 중...
취소
저장