Skip to content

Commit d3939f0

Browse files
author
Alexandru Bagu
committed
rename field to properly match usage
1 parent a400423 commit d3939f0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/src/main/java/com/cloud/agent/api/GetVmIpAddressCommand.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public class GetVmIpAddressCommand extends Command {
2323

2424
String vmName;
2525
String vmNetworkCidr;
26-
String vmNetworkMac;
26+
String vmNicMac;
2727
boolean windows = false;
2828

29-
public GetVmIpAddressCommand(String vmName, String vmNetworkCidr, String vmNetworkMac, boolean windows) {
29+
public GetVmIpAddressCommand(String vmName, String vmNetworkCidr, String vmNicMac, boolean windows) {
3030
this.vmName = vmName;
3131
this.windows = windows;
3232
this.vmNetworkCidr = vmNetworkCidr;
33-
this.vmNetworkMac = vmNetworkMac;
33+
this.vmNicMac = vmNicMac;
3434
}
3535

3636
@Override
@@ -50,7 +50,7 @@ public String getVmNetworkCidr() {
5050
return vmNetworkCidr;
5151
}
5252

53-
public String getVmNetworkMac() {
54-
return vmNetworkMac;
53+
public String getVmNicMac() {
54+
return vmNicMac;
5555
}
5656
}

plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5756,7 +5756,7 @@ protected Answer execute(GetVmIpAddressCommand cmd) {
57565756
if (toolsStatus == VirtualMachineToolsStatus.TOOLS_NOT_INSTALLED) {
57575757
details += "Vmware tools not installed.";
57585758
} else {
5759-
var normalizedMac = cmd.getVmNetworkMac().replaceAll("-", ":");
5759+
var normalizedMac = cmd.getVmNicMac().replaceAll("-", ":");
57605760
for(var guestInfoNic : guestInfo.getNet()) {
57615761
var normalizedNicMac = guestInfoNic.getMacAddress().replaceAll("-", ":");
57625762
if (!result && normalizedNicMac.equalsIgnoreCase(normalizedMac)) {

0 commit comments

Comments
 (0)