|
@@ -669,6 +669,14 @@ public class AutoScalingCtrl { |
|
@@ -669,6 +669,14 @@ public class AutoScalingCtrl { |
669
|
h.setAlias(String.format("%s-%s-%s",(cloudType == 1 ? "AWS":"Qcloud"), "java-"+ scalingGroupName,ip));
|
669
|
h.setAlias(String.format("%s-%s-%s",(cloudType == 1 ? "AWS":"Qcloud"), "java-"+ scalingGroupName,ip));
|
670
|
}
|
670
|
}
|
671
|
h.setCloudType(cloudType);
|
671
|
h.setCloudType(cloudType);
|
|
|
672
|
+
|
|
|
673
|
+ //暂时无法确定腾讯云的可用区
|
|
|
674
|
+ if(1==h.getCloudType()){
|
|
|
675
|
+ h.setCloudDetailType(1);
|
|
|
676
|
+ }else if(2==h.getCloudType()){
|
|
|
677
|
+ h.setCloudDetailType(2);
|
|
|
678
|
+ }
|
|
|
679
|
+
|
672
|
hostInfos.add(h);
|
680
|
hostInfos.add(h);
|
673
|
}
|
681
|
}
|
674
|
resp = httpClient.defaultPost(HttpUriContants.SAVE_HOST_LIST_INFOS ,hostInfos,BaseResponse.class);
|
682
|
resp = httpClient.defaultPost(HttpUriContants.SAVE_HOST_LIST_INFOS ,hostInfos,BaseResponse.class);
|