We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97c0156 commit bf228bbCopy full SHA for bf228bb
sidecar/internal/client/client.go
@@ -137,12 +137,7 @@ func (c *clientImpl) HasControllerService() (bool, error) {
137
return false, err
138
}
139
140
- caps := rsp.GetCapabilities()
141
- if len(caps) == 0 {
142
- return false, errors.New("driver does not have any capabilities")
143
- }
144
-
145
- for _, c := range caps {
+ for _, c := range rsp.GetCapabilities() {
146
svc := c.GetService()
147
if svc != nil && svc.GetType() == identity.Capability_Service_CONTROLLER_SERVICE {
148
return true, nil
0 commit comments