Skip to content

Commit

Permalink
Merge pull request #1361 from jsteinich/fix_private_registry_modules
Browse files Browse the repository at this point in the history
fix(provider-generator): Fix private registry module generation
  • Loading branch information
DanielMSchmidt committed Nov 29, 2021
2 parents 886e632 + 7ae1fd4 commit 2d58c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@cdktf/provider-generator/lib/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ describe("parseConfig", () => {
"output": "cdktf.out",
"terraformModules": Array [
TerraformModuleConstraint {
"fqn": "app.terraform.io/example-corp/k8s-cluster/azurerm",
"fqn": "app-terraform-io/example-corp/k8s-cluster/azurerm",
"name": "k8s-cluster",
"namespace": "example-corp/azurerm",
"source": "app.terraform.io/example-corp/k8s-cluster/azurerm",
Expand Down
2 changes: 1 addition & 1 deletion packages/@cdktf/provider-generator/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class TerraformModuleConstraint
source,
version,
namespace,
fqn: source.replace("//", "/"),
fqn: source.replace("//", "/").replace(/\./g, "-"),
};
}

Expand Down

0 comments on commit 2d58c12

Please sign in to comment.