Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
antonysouthworth-halter committed Oct 3, 2024
1 parent e4f0085 commit 7edbe73
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

==========================

[![terraformregistry](https://img.shields.io/badge/terraform-registry-blueviolet)](https://registry.terraform.io/providers/drfaust92/airflow)
![build](https://github.com/drfaust92/terraform-provider-airflow/workflows/build/badge.svg)
![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/drfaust92/terraform-provider-airflow)
[![terraformregistry](https://img.shields.io/badge/terraform-registry-blueviolet)](https://registry.terraform.io/providers/halter/airflow)
![build](https://github.com/halter/terraform-provider-airflow/workflows/build/badge.svg)
![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/halter/terraform-provider-airflow)

The Airflow provider is used to interact with the Airflow. The
provider needs to be configured with the proper credentials before it can be
Expand Down
2 changes: 1 addition & 1 deletion examples/variable/demo.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
airflow = {
source = "drfaust92/airflow"
source = "halter/airflow"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/drfaust92/terraform-provider-airflow
module github.com/halter/terraform-provider-airflow

go 1.20

Expand Down
3 changes: 3 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ func providerConfigure(ctx context.Context, d *schema.ResourceData) (interface{}
}

if xApiKey, ok := d.GetOk("x_api_key"); ok {
if clientConf.DefaultHeader == nil {
clientConf.DefaultHeader = make(map[string]string)
}
clientConf.DefaultHeader["X-Api-Key"] = xApiKey.(string)
}

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"flag"

"github.com/drfaust92/terraform-provider-airflow/internal/provider"
"github.com/halter/terraform-provider-airflow/internal/provider"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
)
Expand All @@ -18,7 +18,7 @@ func main() {
ProviderFunc: func() *schema.Provider {
return provider.AirflowProvider()
},
ProviderAddr: "registry.terraform.io/drfaust92/airflow",
ProviderAddr: "registry.terraform.io/halter/airflow",
Debug: debug,
})
}

0 comments on commit 7edbe73

Please sign in to comment.