mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
conf: eliminate hardcoded indent from network xml
This was very simple, since the only place that had hardcoded indentation was a few items in the network status xml.
This commit is contained in:
parent
b9e9b76ec0
commit
b1258b2747
@ -2797,17 +2797,17 @@ virNetworkObjFormat(virNetworkObjPtr net,
|
||||
goto no_memory;
|
||||
|
||||
virBufferAddLit(&buf, "<networkstatus>\n");
|
||||
virBufferAsprintf(&buf, " <class_id bitmap='%s'/>\n", class_id);
|
||||
virBufferAsprintf(&buf, " <floor sum='%llu'/>\n", net->floor_sum);
|
||||
virBufferAdjustIndent(&buf, 2);
|
||||
virBufferAsprintf(&buf, "<class_id bitmap='%s'/>\n", class_id);
|
||||
virBufferAsprintf(&buf, "<floor sum='%llu'/>\n", net->floor_sum);
|
||||
VIR_FREE(class_id);
|
||||
|
||||
for (i = 0; i < VIR_NETWORK_TAINT_LAST; i++) {
|
||||
if (net->taint & (1 << i))
|
||||
virBufferAsprintf(&buf, " <taint flag='%s'/>\n",
|
||||
virBufferAsprintf(&buf, "<taint flag='%s'/>\n",
|
||||
virNetworkTaintTypeToString(i));
|
||||
}
|
||||
|
||||
virBufferAdjustIndent(&buf, 2);
|
||||
if (virNetworkDefFormatBuf(&buf, net->def, flags) < 0)
|
||||
goto error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user