Skip to content

Commit 42c139c

Browse files
adrianrioboppitonak
authored andcommitted
fix(rhel-ai): Remove azure check for NoLocalStorage
Signed-off-by: Adrian Riobo <ariobolo@redhat.com>
1 parent 41fd57d commit 42c139c

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

pkg/provider/azure/action/rhel-ai/rhelai.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,6 @@ func Create(mCtxArgs *maptContext.ContextArgs, args *apiRHELAI.RHELAIArgs) (err
5656
}
5757
// Shallow-copy to avoid mutating the caller's ComputeRequestArgs.
5858
computeReq := *args.ComputeRequest
59-
if len(computeReq.ComputeSizes) > 0 {
60-
ctx := mCtxArgs.Context
61-
if ctx == nil {
62-
ctx = context.Background()
63-
}
64-
computeReq.ComputeSizes, err = data.FilterNoLocalStorageSizes(
65-
ctx, computeReq.ComputeSizes)
66-
if err != nil {
67-
return err
68-
}
69-
if len(computeReq.ComputeSizes) == 0 {
70-
return fmt.Errorf("no valid compute sizes: all provided sizes have NVMe-only local storage, incompatible with RHEL AI")
71-
}
72-
}
7359
// Ensure GPU-capable instance selection for auto-selection paths.
7460
if computeReq.GPUs == 0 {
7561
logging.Debug("RHEL AI: GPUs not set, defaulting to 1 for GPU-capable instance selection")

0 commit comments

Comments
 (0)