Skip to content

Commit 6f1911b

Browse files
CopilotJackass4life
andcommitted
refactor: rename result to tenant_group_map in _build_tenant_group_map
Co-authored-by: Jackass4life <94110786+Jackass4life@users.noreply.github.com> Agent-Logs-Url: https://github.com/Jackass4life/Nautobot-maps/sessions/8a5b4fe1-ccd3-406f-be2a-4124fd563b8e
1 parent f4fac72 commit 6f1911b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _build_tenant_group_map() -> dict:
134134
try:
135135
tg_name_map = _build_id_name_map("tenancy/tenant-groups/")
136136
tenants = fetch_all_pages("tenancy/tenants/")
137-
result: dict = {}
137+
tenant_group_map: dict = {}
138138
for tenant in tenants:
139139
tid = tenant.get("id")
140140
if not tid:
@@ -146,8 +146,8 @@ def _build_tenant_group_map() -> dict:
146146
or tg_name_map.get(tg_id, "")
147147
)
148148
if tg_name:
149-
result[tid] = tg_name
150-
return result
149+
tenant_group_map[tid] = tg_name
150+
return tenant_group_map
151151
except Exception as exc:
152152
logger.debug("Could not build tenant group map: %s", exc)
153153
return {}

0 commit comments

Comments
 (0)