Skip to content

Commit 2b297c3

Browse files
committed
update generate_templates
1 parent 377130a commit 2b297c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

generate_templates.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ def resolve_alias(devicemap, sku_map):
433433
),
434434
sku_map,
435435
)
436-
method = device_map["alias"].get("method", "")
436+
method = devicemap["alias"].get("method", "")
437437

438-
del device_map["alias"]
438+
del devicemap["alias"]
439439

440440
if not alias_map.get("ethernet"):
441441
alias_map["ethernet"] = []
@@ -444,11 +444,11 @@ def resolve_alias(devicemap, sku_map):
444444

445445
if method.lower() == "append":
446446
try:
447-
alias_map["ethernet"].extend(device_map.pop("ethernet"))
447+
alias_map["ethernet"].extend(devicemap.pop("ethernet"))
448448
except KeyError:
449449
pass
450450
try:
451-
alias_map["lte"].extend(device_map.pop("lte"))
451+
alias_map["lte"].extend(devicemap.pop("lte"))
452452
except KeyError:
453453
pass
454454

0 commit comments

Comments
 (0)