Skip to content

Commit

Permalink
fixes config for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
camcash17 committed Jun 6, 2022
1 parent 5865721 commit dbf7793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/backend/src/service/convertConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const convertConfig = (appConfig?: BackstageConfig): CCFConfig => {
: {
...ccfDefaults.GCP,
USE_BILLING_DATA:
gcpConfig.getOptionalBoolean('useBillingData') === 'true' ? true : false ??
gcpConfig.getOptionalBoolean('useBillingData') ??
ccfDefaults.GCP!.USE_BILLING_DATA,
BILLING_PROJECT_ID:
gcpConfig.getOptionalString('billingProjectId') ??
Expand Down Expand Up @@ -61,7 +61,7 @@ export const convertConfig = (appConfig?: BackstageConfig): CCFConfig => {
: {
...ccfDefaults.AWS,
USE_BILLING_DATA:
awsConfig.getOptionalBoolean('useBillingData') === 'true' ? true : false ??
awsConfig.getOptionalBoolean('useBillingData') ??
ccfDefaults.AWS!.USE_BILLING_DATA,
BILLING_ACCOUNT_ID:
awsConfig.getOptionalString('billingAccountId') ??
Expand Down Expand Up @@ -116,7 +116,7 @@ export const convertConfig = (appConfig?: BackstageConfig): CCFConfig => {
: {
...ccfDefaults.AZURE,
USE_BILLING_DATA:
azureConfig.getOptionalBoolean('useBillingData') === 'true' ? true : false ??
azureConfig.getOptionalBoolean('useBillingData') ??
ccfDefaults.AZURE!.USE_BILLING_DATA,
authentication: {
mode:
Expand Down

0 comments on commit dbf7793

Please sign in to comment.