From cda03d6460376a0474bb0fb1761b9a7d071a0131 Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Thu, 9 May 2019 16:05:18 +0800 Subject: [PATCH] user can get backup host id --- pkg/compute/models/guests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compute/models/guests.go b/pkg/compute/models/guests.go index fca40b36cc..1b4cf36573 100644 --- a/pkg/compute/models/guests.go +++ b/pkg/compute/models/guests.go @@ -228,7 +228,7 @@ type SGuest struct { KeypairId string `width:"36" charset:"ascii" nullable:"true" list:"user" create:"optional"` // Column(VARCHAR(36, charset='ascii'), nullable=True) HostId string `width:"36" charset:"ascii" nullable:"true" list:"admin" get:"admin" index:"true"` // Column(VARCHAR(36, charset='ascii'), nullable=True) - BackupHostId string `width:"36" charset:"ascii" nullable:"true" list:"admin" get:"admin"` + BackupHostId string `width:"36" charset:"ascii" nullable:"true" list:"user" get:"user"` Vga string `width:"36" charset:"ascii" nullable:"true" list:"user" update:"user" create:"optional"` // Column(VARCHAR(36, charset='ascii'), nullable=True) Vdi string `width:"36" charset:"ascii" nullable:"true" list:"user" update:"user" create:"optional"` // Column(VARCHAR(36, charset='ascii'), nullable=True)