In one of my previous patches (
b68a56bcfe) I made class_id to
format more frequently. Well, now it's formatting way too
frequent - even for regular active XML. Users don't need to see
it, so lets format it only for the status XML where it's really
needed.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
virBufferAddLit(buf, "/>\n");
}
- if (def->data.network.actual && def->data.network.actual->class_id) {
+ if (flags & VIR_DOMAIN_DEF_FORMAT_STATUS &&
+ def->data.network.actual && def->data.network.actual->class_id) {
virBufferAsprintf(buf, "<class id='%u'/>\n",
def->data.network.actual->class_id);
}