diff --git a/pkg/compute/models/zones.go b/pkg/compute/models/zones.go index 8ee84a9e6d..f2c82736c7 100644 --- a/pkg/compute/models/zones.go +++ b/pkg/compute/models/zones.go @@ -474,11 +474,11 @@ func (manager *SZoneManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQu return q, nil } -func (self *SZone) AllowGetDetailsCapabilities(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) bool { +func (self *SZone) AllowGetDetailsCapability(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) bool { return true } -func (self *SZone) GetDetailsCapabilities(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) (jsonutils.JSONObject, error) { +func (self *SZone) GetDetailsCapability(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) (jsonutils.JSONObject, error) { capa := GetCapabilities(self) return jsonutils.Marshal(&capa), nil }