Global parameter passed to Foreman destroy hook instead of host parameter

Problem:
The “hammer host create --parameter…” command will create a VM and set host parameters. A host parameter can override a global parameter. If the global parameter is overridden it is marked as overridden in the UI and foreman passes the host parameter to the foreman update hook. When foreman calls the destroy hook it passes the global parameter to the destroy hook instead of the host parameter. If the “hammer host info --name…” command is run in the destroy hook it correctly shows the host parameter. Foreman should pass the host parameter to the foreman destroy hook instead of the global parameter.

Expected outcome:
If a host parameter overrides a global parameter then Foreman should pass the host parameter to the foreman destroy hook instead of the global parameter.

Foreman and Proxy versions:
Foreman 2.1.2

Distribution and version:
CentOS 7