Skip to content

Commit

Permalink
fi(provider-generator): Fix private registry module generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteinich committed Nov 27, 2021
1 parent afbba8b commit 1aee234
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 1aee234

Please sign in to comment.