File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed
main/nextflow/cloud/azure/batch
test/nextflow/cloud/azure/batch Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ import com.azure.compute.batch.models.ContainerConfiguration
50
50
import com.azure.compute.batch.models.ContainerRegistryReference
51
51
import com.azure.compute.batch.models.ContainerType
52
52
import com.azure.compute.batch.models.ElevationLevel
53
- import com.azure.compute.batch.models.EnvironmentSetting
54
53
import com.azure.compute.batch.models.MetadataItem
55
54
import com.azure.compute.batch.models.MountConfiguration
56
55
import com.azure.compute.batch.models.NetworkConfiguration
@@ -553,14 +552,6 @@ class AzBatchService implements Closeable {
553
552
.setOutputFiles(outputFileUrls(task, sas))
554
553
.setRequiredSlots(slots)
555
554
.setConstraints(constraints)
556
- .setEnvironmentSettings(taskEnv(config. batch()))
557
- }
558
-
559
- protected List<EnvironmentSetting > taskEnv (AzBatchOpts opts ) {
560
- return opts. poolIdentityClientId
561
- ? List . of(new EnvironmentSetting (" FUSION_AZ_MSI_CLIENT_ID" )
562
- .setValue(opts. poolIdentityClientId))
563
- : List . < EnvironmentSetting > of()
564
555
}
565
556
566
557
/**
Original file line number Diff line number Diff line change @@ -1027,24 +1027,4 @@ class AzBatchServiceTest extends Specification {
1027
1027
]
1028
1028
}
1029
1029
1030
- @Unroll
1031
- def ' should create task env' () {
1032
- given :
1033
- def exec = Mock (AzBatchExecutor )
1034
- def service = new AzBatchService (exec)
1035
- List<EnvironmentSetting > env
1036
-
1037
- when :
1038
- env = service. taskEnv(new AzBatchOpts ([:]))
1039
- then :
1040
- env == []
1041
-
1042
- when :
1043
- env = service. taskEnv(new AzBatchOpts ([poolIdentityClientId :' 12345' ]))
1044
- then :
1045
- env. size() == 1
1046
- env. first. name == ' FUSION_AZ_MSI_CLIENT_ID'
1047
- env. first. value == ' 12345'
1048
- }
1049
-
1050
1030
}
You can’t perform that action at this time.
0 commit comments