Skip to content

Commit 130286a

Browse files
authored
Merge pull request #792 from jschoiRR/europa-2026
[Mold Europa] Domain xml 항목의 설정중 xmlns 값 기본값으로 추가(xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>)
2 parents 5ae0706 + c4dad08 commit 130286a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,11 @@ public DevicesDef getDevices() {
27622762
@Override
27632763
public String toString() {
27642764
StringBuilder vmBuilder = new StringBuilder();
2765-
vmBuilder.append("<domain type='" + _hvsType + "'>\n");
2765+
if ("kvm".equalsIgnoreCase(_hvsType)) {
2766+
vmBuilder.append("<domain type='" + _hvsType + "' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>\n");
2767+
} else {
2768+
vmBuilder.append("<domain type='" + _hvsType + "'>\n");
2769+
}
27662770
vmBuilder.append("<name>" + _domName + "</name>\n");
27672771
if (_domUUID != null) {
27682772
vmBuilder.append("<uuid>" + _domUUID + "</uuid>\n");

0 commit comments

Comments
 (0)