go.mod: update github.com/vmware/govmomi to v0.48.0
Needs manual change of import paths.
This commit is contained in:
parent
3a6bea380e
commit
bec893e37c
170 changed files with 7474 additions and 1604 deletions
10
vendor/github.com/vmware/govmomi/vim25/xml/marshal.go
generated
vendored
10
vendor/github.com/vmware/govmomi/vim25/xml/marshal.go
generated
vendored
|
|
@ -497,11 +497,6 @@ func (p *printer) marshalValue(val reflect.Value, finfo *fieldInfo, startTemplat
|
|||
start.Name.Local = name
|
||||
}
|
||||
|
||||
// Add type attribute if necessary
|
||||
if finfo != nil && finfo.flags&fTypeAttr != 0 {
|
||||
start.Attr = append(start.Attr, Attr{xmlSchemaInstance, typeToString(typ)})
|
||||
}
|
||||
|
||||
// Attributes
|
||||
for i := range tinfo.fields {
|
||||
finfo := &tinfo.fields[i]
|
||||
|
|
@ -524,6 +519,11 @@ func (p *printer) marshalValue(val reflect.Value, finfo *fieldInfo, startTemplat
|
|||
}
|
||||
}
|
||||
|
||||
// Add type attribute if necessary
|
||||
if finfo != nil && finfo.flags&fTypeAttr != 0 {
|
||||
start.Attr = append(start.Attr, Attr{xmlSchemaInstance, typeToString(typ)})
|
||||
}
|
||||
|
||||
if err := p.writeStart(&start); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue