mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Print the returned object in the event of a publish error
resp.Object is a pointer, so printing resp doesn't show what the server returned.
This commit is contained in:
parent
218fdc7594
commit
49ee27988d
@ -104,7 +104,7 @@ func (m *Master) createMasterServiceIfNeeded(serviceName string, port int) error
|
||||
// If all worked, we get back an *api.Service object.
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("unexpected response: %#v", resp)
|
||||
return fmt.Errorf("unexpected response: %#v", resp.Object)
|
||||
}
|
||||
|
||||
// ensureEndpointsContain sets the endpoints for the given service. Also removes
|
||||
|
Loading…
Reference in New Issue
Block a user