We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1d1b6 commit a797a79Copy full SHA for a797a79
plugins/nf-google/src/main/nextflow/cloud/google/batch/GoogleBatchMachineTypeSelector.groovy
@@ -153,7 +153,7 @@ class GoogleBatchMachineTypeSelector {
153
final json = "${CLOUD_INFO_API}/providers/google/services/compute/regions/${region}/products".toURL().text
154
final data = new JsonSlurper().parseText(json)
155
final products = data['products'] as List<Map>
156
- final averageSpotPrice = (List<Map> prices) -> prices.collect{it.price as float}.average() as float
+ final averageSpotPrice = (List<Map> prices) -> prices ? prices.collect{it.price as float}.average() as float : 0.0f
157
158
products.collect {
159
new MachineType(
0 commit comments