We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce6539b commit db91e54Copy full SHA for db91e54
1 file changed
plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java
@@ -270,9 +270,11 @@ public VirtualMachineTO implement(VirtualMachineProfile vm) {
270
for (NicTO nicTo : sortNicsByDeviceId(to.getNics())) {
271
sbMacSequence.append(nicTo.getMac()).append("|");
272
}
273
- sbMacSequence.deleteCharAt(sbMacSequence.length() - 1);
274
- String bootArgs = to.getBootArgs();
275
- to.setBootArgs(bootArgs + " nic_macs=" + sbMacSequence.toString());
+ if (!sbMacSequence.toString().isEmpty()) {
+ sbMacSequence.deleteCharAt(sbMacSequence.length() - 1);
+ String bootArgs = to.getBootArgs();
276
+ to.setBootArgs(bootArgs + " nic_macs=" + sbMacSequence.toString());
277
+ }
278
279
280
0 commit comments