Fix aliased types not being generated

Types that are promoted get turned into aliases, but the dispatch table was missing
these types. This was due to a simple mistake of mixing up the alias with the type
being aliased.
This commit is contained in:
Charles Giessen 2023-12-12 15:25:14 -07:00 committed by Charles Giessen
parent ee817ba3c8
commit c16df41166
2 changed files with 1043 additions and 3 deletions

View File

@ -160,9 +160,9 @@ for command_node in commands_node:
aliases[command_node['@alias']] = command_node['@name']
# Push the alias name as a device function if the alias exists in device commands
for alias_name, alias in aliases.items():
if alias in commands:
commands[alias] = copy.deepcopy(commands[alias_name])
for aliased_type, alias in aliases.items():
if aliased_type in commands:
commands[alias] = copy.deepcopy(commands[aliased_type])
commands[alias]['is_alias'] = True
# Add requirements for core PFN's

File diff suppressed because it is too large Load Diff