Skip to content

Commit 39e1e65

Browse files
philbrookesdimitraz
authored and
dimitraz
committed
skip services with no external metadata
1 parent ead2c65 commit 39e1e65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cmd/services.go

+4
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ func findServiceClassByName(scClient versioned.Interface, name string) (*v1beta1
147147

148148
for _, item := range mobileServices.Items {
149149
var extData ExternalServiceMetaData
150+
// skip services with no external metadata
151+
if item.Spec.ExternalMetadata == nil {
152+
continue
153+
}
150154
rawData := item.Spec.ExternalMetadata.Raw
151155
if err := json.Unmarshal(rawData, &extData); err != nil {
152156
return nil, err

0 commit comments

Comments
 (0)