Skip to content

Commit

Permalink
feat: 定时任务兼容不合法主机 TencentBlueKing#3305
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Dec 27, 2024
1 parent faa18b6 commit 246a3dc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ public class HostDTO implements Cloneable {
private String cloudVendorName;

/**
* 管控区域:IP
* 管控区域:IPv4
*/
@JsonIgnore
private String cloudIp;

@Deprecated
public HostDTO(Long bkCloudId, String ip) {
public HostDTO(Long bkCloudId, String ipv4) {
this.bkCloudId = bkCloudId;
this.ip = ip;
this.cloudIp = buildCloudIp(bkCloudId, ip);
this.ip = ipv4;
this.cloudIp = buildCloudIp(bkCloudId, ipv4);
}

public HostDTO(Long hostId) {
Expand Down Expand Up @@ -191,8 +191,8 @@ public String toCloudIp() {
}
}

private String buildCloudIp(Long bkCloudId, String ipv4) {
return bkCloudId + ":" + ipv4;
private String buildCloudIp(Long bkCloudId, String ip) {
return bkCloudId + ":" + ip;
}

/**
Expand Down

0 comments on commit 246a3dc

Please sign in to comment.