Merge pull request #2408 from ioito/hotfix/qx-guest-instance-type-charset

fix: avoid sku validate delete return error
This commit is contained in:
yunion-ci-robot
2019-08-20 23:34:10 +08:00
committed by GitHub
+1 -1
View File
@@ -114,7 +114,7 @@ type SGuest struct {
Hypervisor string `width:"16" charset:"ascii" nullable:"false" default:"kvm" list:"user" create:"required"` // Column(VARCHAR(16, charset='ascii'), nullable=False, default=HYPERVISOR_DEFAULT)
InstanceType string `width:"64" charset:"ascii" nullable:"true" list:"user" create:"optional"`
InstanceType string `width:"64" charset:"utf8" nullable:"true" list:"user" create:"optional"`
}
func (manager *SGuestManager) AllowListItems(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) bool {