Merge branch 'release/2.5.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-2.6.0-20190215

Conflicts:
	pkg/compute/guestdrivers/esxi.go
	pkg/compute/guestdrivers/openstack.go
This commit is contained in:
Qiu Jian
2019-02-15 19:47:56 +08:00
20 changed files with 151 additions and 18 deletions
+3
View File
@@ -131,6 +131,9 @@ func (model *SStandaloneResourceBase) GetShortDesc(ctx context.Context) *jsonuti
desc := model.SResourceBase.GetShortDesc(ctx)
desc.Add(jsonutils.NewString(model.GetName()), "name")
desc.Add(jsonutils.NewString(model.GetId()), "id")
if len(model.ExternalId) > 0 {
desc.Add(jsonutils.NewString(model.ExternalId), "external_id")
}
return desc
}
+1 -1
View File
@@ -56,7 +56,7 @@ type DBOptions struct {
AutoSyncTable bool `help:"Automatically synchronize table changes if differences are detected"`
GlobalVirtualResourceNamespace bool `help:"Per project namespace or global namespace for virtual resources"`
DebugSqlchemy bool `default:"False" help:"Print SQL executed by sqlchemy"`
DebugSqlchemy bool `default:"false" help:"Print SQL executed by sqlchemy"`
}
func (this *DBOptions) GetDBConnection() (dialect, connstr string, err error) {