Skip to content

Commit 7b8c72e

Browse files
committed
other minimal changes
1 parent a3db626 commit 7b8c72e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/nf-k8s/src/main/nextflow/k8s/model/PodSpecBuilder.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,9 @@ class PodSpecBuilder {
683683
// Default to standard NVIDIA GPU if left entirely blank.
684684
def type = accelerator.type?.toLowerCase() ?: 'nvidia.com'
685685

686-
if (type.contains('/')) {
686+
if ( type.contains('/') )
687687
// Assume the user has fully specified the resource type.
688688
return type
689-
}
690689

691690
// Map common vendor shorthands to their standard K8s Extended Resource strings.
692691
if (type =~ /\b(nvidia|tesla|ampere|h100|a100)\b/) return 'nvidia.com/gpu'

0 commit comments

Comments
 (0)