Skip to content

Commit

Permalink
Add remaining active national clouds (#7666)
Browse files Browse the repository at this point in the history
  • Loading branch information
BMurri authored Dec 5, 2024
1 parent ec6dfdf commit 03979c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ object AzureConfiguration {
object AzureEnvironmentConverter {
val Azure: String = "AzureCloud"
val AzureGov: String = "AzureUSGovernmentCloud"
val AzureChina: String = "AzureChinaCloud"

def fromString(s: String): AzureEnvironment = s match {
case AzureGov => AzureEnvironment.AZURE_US_GOVERNMENT
case AzureChina => AzureEnvironment.AZURE_CHINA

Check warning on line 23 in cloudSupport/src/main/scala/cromwell/cloudsupport/azure/AzureConfiguration.scala

View check run for this annotation

Codecov / codecov/patch

cloudSupport/src/main/scala/cromwell/cloudsupport/azure/AzureConfiguration.scala#L22-L23

Added lines #L22 - L23 were not covered by tests
// a bit redundant, but I want to have a explicit case for Azure for clarity, even though it's the default
case Azure => AzureEnvironment.AZURE

Check warning on line 25 in cloudSupport/src/main/scala/cromwell/cloudsupport/azure/AzureConfiguration.scala

View check run for this annotation

Codecov / codecov/patch

cloudSupport/src/main/scala/cromwell/cloudsupport/azure/AzureConfiguration.scala#L25

Added line #L25 was not covered by tests
case _ => AzureEnvironment.AZURE
Expand Down

0 comments on commit 03979c0

Please sign in to comment.