Skip to content

Commit

Permalink
Update usecase check to also check for available
Browse files Browse the repository at this point in the history
`VerifyUseCaseScenariosAndFeaturesSupport` also has to check if the usecase is actually reported as being available
  • Loading branch information
DerAndereAndi committed May 30, 2024
1 parent 097fd5e commit 73e4d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spine/device_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ func (d *DeviceRemote) VerifyUseCaseScenariosAndFeaturesSupport(
}

for _, support := range usecase.UseCaseSupport {
if support.UseCaseName == nil || *support.UseCaseName != usecaseName {
if support.UseCaseName == nil || *support.UseCaseName != usecaseName ||
(support.UseCaseAvailable != nil && !*support.UseCaseAvailable) {
continue
}

Expand Down

0 comments on commit 73e4d43

Please sign in to comment.