Skip to content

Commit

Permalink
meraki_networks.tf mvp + generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Parafiniuk committed Jul 8, 2024
1 parent e34199b commit e478ce2
Show file tree
Hide file tree
Showing 2 changed files with 416 additions and 163 deletions.
2 changes: 1 addition & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ def generate_template(resource, values):
j = json.loads(contents)

for k, v in j["provider_schemas"]["registry.terraform.io/cisco-open/meraki"]["resource_schemas"].items():
if k.startswith("meraki_networks_switch"):
if k.startswith("meraki_networks_wireless"):
print(generate_template(k[16:], [kk for kk, vv in v["block"]["attributes"].items() if kk != "network_id"]))
Loading

0 comments on commit e478ce2

Please sign in to comment.