Authored by qinchao

aws伸缩

... ... @@ -130,10 +130,8 @@ public class AwsQueryService {
commGroups = new ArrayList<>();
CommAutoScalingGroup commGroup;
for(AutoScalingGroup group : result.getAutoScalingGroups()){
if(StringUtils.isNotBlank(equalsName)){
if(!group.getAutoScalingGroupName().toLowerCase().equals(equalsName)){
continue;
}
if(StringUtils.isNotBlank(equalsName)&&!equalsName.equals(group.getAutoScalingGroupName())){
continue;
}
commGroup = new CommAutoScalingGroup();
commGroup.setScalingGroupName(group.getAutoScalingGroupName());
... ...
... ... @@ -59,10 +59,8 @@ public class QcloudToolServiceImpl implements QcloudToolService {
//3:取特定组的ip 硬盘等信息
List<QcloudInstanceSet> instanceSets = null;
for(QcloudAutoScalingGroup group : autoScalingGroups){
if(equalsName != null){
if(group.getScalingGroupName().toLowerCase().indexOf(equalsName) == -1){
continue;
}
if(StringUtils.isNotBlank(equalsName)&&!equalsName.equals(group.getScalingGroupName())){
continue;
}
//组装组数据
commAutoScalingGroup = new CommAutoScalingGroup();
... ...