From 0052e9db83c8479a61452815feedaaf8912f3bb6 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Tue, 28 Dec 2021 19:41:07 +0800 Subject: [PATCH] fix(region): set isolated_device model 512 length --- pkg/compute/models/isolated_devices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compute/models/isolated_devices.go b/pkg/compute/models/isolated_devices.go index 41b2104ef7..e6beac3a62 100644 --- a/pkg/compute/models/isolated_devices.go +++ b/pkg/compute/models/isolated_devices.go @@ -85,7 +85,7 @@ type SIsolatedDevice struct { DevType string `width:"16" charset:"ascii" nullable:"false" default:"" index:"true" list:"domain" create:"domain_required" update:"domain"` // # Specific device name read from lspci command, e.g. `Tesla K40m` ... - Model string `width:"32" charset:"ascii" nullable:"false" default:"" index:"true" list:"domain" create:"domain_required" update:"domain"` + Model string `width:"512" charset:"ascii" nullable:"false" default:"" index:"true" list:"domain" create:"domain_required" update:"domain"` // 云主机Id GuestId string `width:"36" charset:"ascii" nullable:"true" index:"true" list:"domain"`