From 73e4d4303230a5ec1c02170579b9ea6052ef2a04 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Thu, 30 May 2024 14:04:17 +0200 Subject: [PATCH] Update usecase check to also check for available `VerifyUseCaseScenariosAndFeaturesSupport` also has to check if the usecase is actually reported as being available --- spine/device_remote.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spine/device_remote.go b/spine/device_remote.go index 32b6f3b..cd67ae7 100644 --- a/spine/device_remote.go +++ b/spine/device_remote.go @@ -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 }