*: Bump version of vmware/govmomi
Bumping version to include changes that better handle TLS errors. Bump nescessary to prepare for when the version of Go is bumped to 1.20 Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
This commit is contained in:
10
vendor/github.com/vmware/govmomi/vim25/soap/error.go
generated
vendored
10
vendor/github.com/vmware/govmomi/vim25/soap/error.go
generated
vendored
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
package soap
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
@@ -49,6 +50,15 @@ func (s soapFaultError) Error() string {
|
||||
return fmt.Sprintf("%s: %s", s.fault.Code, msg)
|
||||
}
|
||||
|
||||
func (s soapFaultError) MarshalJSON() ([]byte, error) {
|
||||
out := struct {
|
||||
Fault *Fault
|
||||
}{
|
||||
Fault: s.fault,
|
||||
}
|
||||
return json.Marshal(out)
|
||||
}
|
||||
|
||||
type vimFaultError struct {
|
||||
fault types.BaseMethodFault
|
||||
}
|
||||
|
Reference in New Issue
Block a user