Skip to content

Commit

Permalink
chore: add escaped attribute for importFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
Maed223 committed Sep 25, 2023
1 parent f3ae8fc commit 2e84867
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export function escapeAttributeName(name: string) {
if (name === "system") return "systemAttribute";
// `tfResourceType` is already used by resources to distinguish between different resource types
if (name === "tfResourceType") return `${name}Attribute`;
// `importFrom` has potential for common name collision with providers
if (name === "importFrom") return `${name}Provider`;
return name;
}

Expand Down

0 comments on commit 2e84867

Please sign in to comment.