Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
francescastocco committed Jan 3, 2024
1 parent 8ff8b26 commit 84b936f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions infrastructure/resource_group_level/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -779,14 +779,11 @@ module tfmApi 'modules/webapps/trade-finance-manager-api-no-calculated-variables
appServicePlanEgressSubnetId: vnet.outputs.appServicePlanEgressSubnetId
appServicePlanId: appServicePlan.id
containerRegistryName: containerRegistry.name
dtfsCentralApiHostname: dtfsCentralApi.outputs.defaultHostName
environment: environment
externalApiHostname: externalApi.outputs.defaultHostName
location: location
logAnalyticsWorkspaceId: logAnalyticsWorkspace.id
privateEndpointsSubnetId: vnet.outputs.privateEndpointsSubnetId
azureWebsitesDnsZoneId: websitesDns.outputs.azureWebsitesDnsZoneId
nodeDeveloperMode: parametersMap[environment].nodeDeveloperMode
}
}

Expand Down Expand Up @@ -951,6 +948,10 @@ module tfmApiCalculatedVariables 'modules/webapps/trade-finance-manager-api-calc
cosmosDbAccountName: cosmosDb.outputs.cosmosDbAccountName
cosmosDbDatabaseName: cosmosDb.outputs.cosmosDbDatabaseName
environment: environment
containerRegistryName: containerRegistry.name
dtfsCentralApiHostname: dtfsCentralApi.outputs.defaultHostName
externalApiHostname: externalApi.outputs.defaultHostName
nodeDeveloperMode: parametersMap[environment].nodeDeveloperMode
numberGeneratorFunctionDefaultHostName: functionNumberGenerator.outputs.defaultHostName
secureConnectionStrings: tfmApiSecureConnectionStrings
additionalSecureConnectionStrings: tfmApiAdditionalSecureConnectionStrings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
param environment string
param cosmosDbAccountName string
param cosmosDbDatabaseName string
param containerRegistryName string
param externalApiHostname string
param dtfsCentralApiHostname string
param nodeDeveloperMode bool
param numberGeneratorFunctionDefaultHostName string
param tfmUiUrl string
param storageAccountName string
param settings object

var tfmApiNameFragment = 'trade-finance-manager-api'
var tfmApiName = 'tfs-${environment}-${tfmApiNameFragment}'
var applicationInsightsName = 'tfs-${environment}-${tfmApiNameFragment}'

var deployApplicationInsights = false // TODO:DTFS2-6422 enable application insights
var selfHostnameEnvironmentVariable = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ param appServicePlanEgressSubnetId string
param appServicePlanId string
param privateEndpointsSubnetId string
param logAnalyticsWorkspaceId string
param externalApiHostname string
param dtfsCentralApiHostname string

param azureWebsitesDnsZoneId string
param nodeDeveloperMode bool

param resourceNameFragment string = 'trade-finance-manager-api'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var appName = 'tfs-${environment}-${resourceNameFragment}'
var privateEndpointName = 'tfs-${environment}-${resourceNameFragment}'
var applicationInsightsName = 'tfs-${environment}-${resourceNameFragment}'

var appSettingsWithAppInsights = if (!empty(appSettings)) {
var appSettingsWithAppInsights = (!empty(appSettings)) ?
union(
appSettings,
deployApplicationInsights ? {
Expand All @@ -35,8 +35,7 @@ var appSettingsWithAppInsights = if (!empty(appSettings)) {
selfHostnameEnvironmentVariable == '' ? {} : {
'${selfHostnameEnvironmentVariable}': site.properties.defaultHostName
}
)
}
) : {}

resource site 'Microsoft.Web/sites@2022-09-01' = {
name: appName
Expand Down

0 comments on commit 84b936f

Please sign in to comment.