Fix POST to drivers not using payload wrapper for install

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2022-03-01 10:32:05 +01:00
parent 2e6fffe02b
commit b63939497d
1 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,9 @@ class DriversController(SubiquityController):
await self.configured()
else:
# TODO Remove this once we have the GUI controller.
await self.POST(install=True)
await self.POST(data=DriversPayload(
install=True,
))
async def GET(self, wait: bool = False) -> DriversResponse:
if wait: