Hardware Acceleration GPU button is missing

Affected versions: 2.15.0 and above

Fixed in: Upcoming release

Issue Description

After upgrading a Portainer installation from 2.14.2 to a newer version, the Hardware Acceleration GPU button is missing.

Cause

This issue is the result of a bug in the upgrade process of Portainer where a value is set incorrectly.

Workaround

You can manually resolve this issue in your configuration through the Portainer API by setting the Gpus option to the correct value of [].  Here is an example API command:

http --verify=no PUT https://localhost:9443/api/endpoints/1 X-API-Key:my-api-key Gpus:='[]'