Skip to content

Commit 48361d8

Browse files
author
Alena Prokharchyk
committed
Fixed listAutoScaleVmGroups: used to return incorrect value in lbruleid field (wrong parameter was used when search in firewall_rules table - profileId instead of lbRuleId)
1 parent e8438f1 commit 48361d8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎server/src/com/cloud/api/ApiResponseHelper.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030

3131
import javax.inject.Inject;
3232

33-
import org.apache.log4j.Logger;
34-
3533
import org.apache.cloudstack.acl.ControlledEntity;
3634
import org.apache.cloudstack.acl.ControlledEntity.ACLType;
3735
import org.apache.cloudstack.affinity.AffinityGroup;
@@ -147,6 +145,7 @@
147145
import org.apache.cloudstack.usage.Usage;
148146
import org.apache.cloudstack.usage.UsageService;
149147
import org.apache.cloudstack.usage.UsageTypes;
148+
import org.apache.log4j.Logger;
150149

151150
import com.cloud.api.query.ViewResponseHelper;
152151
import com.cloud.api.query.vo.AccountJoinVO;
@@ -2968,7 +2967,7 @@ public AutoScaleVmGroupResponse createAutoScaleVmGroupResponse(AutoScaleVmGroup
29682967
if (profile != null) {
29692968
response.setProfileId(profile.getUuid());
29702969
}
2971-
FirewallRuleVO fw = ApiDBUtils.findFirewallRuleById(vmGroup.getProfileId());
2970+
FirewallRuleVO fw = ApiDBUtils.findFirewallRuleById(vmGroup.getLoadBalancerId());
29722971
if (fw != null) {
29732972
response.setLoadBalancerId(fw.getUuid());
29742973
}

0 commit comments

Comments
 (0)