diff --git a/pkg/apis/compute/hostschedtag.go b/pkg/apis/compute/hostschedtag.go index 0a738d5858..262861d7e9 100644 --- a/pkg/apis/compute/hostschedtag.go +++ b/pkg/apis/compute/hostschedtag.go @@ -25,4 +25,4 @@ type HostschedtagDetails struct { type HostschedtagListInput struct { SchedtagJointsListInput HostFilterListInput -} \ No newline at end of file +} diff --git a/pkg/compute/models/hostjoints.go b/pkg/compute/models/hostjoints.go index 4bc0bf7947..2d96346c45 100644 --- a/pkg/compute/models/hostjoints.go +++ b/pkg/compute/models/hostjoints.go @@ -16,10 +16,10 @@ package models import ( "context" - "yunion.io/x/pkg/errors" - "yunion.io/x/sqlchemy" "yunion.io/x/jsonutils" + "yunion.io/x/pkg/errors" + "yunion.io/x/sqlchemy" api "yunion.io/x/onecloud/pkg/apis/compute" "yunion.io/x/onecloud/pkg/cloudcommon/db" @@ -43,7 +43,7 @@ func NewHostJointsManager(hostIdFieldName string, dt interface{}, tableName stri slave, ), SHostResourceBaseManager: SHostResourceBaseManager{ - hostIdFieldName:hostIdFieldName, + hostIdFieldName: hostIdFieldName, }, } } diff --git a/pkg/compute/models/hostnetworks.go b/pkg/compute/models/hostnetworks.go index f92fd2e7e6..d02025f81a 100644 --- a/pkg/compute/models/hostnetworks.go +++ b/pkg/compute/models/hostnetworks.go @@ -16,10 +16,10 @@ package models import ( "context" - "yunion.io/x/pkg/errors" "yunion.io/x/jsonutils" "yunion.io/x/log" + "yunion.io/x/pkg/errors" "yunion.io/x/sqlchemy" api "yunion.io/x/onecloud/pkg/apis/compute" @@ -57,11 +57,11 @@ type SHostnetwork struct { // 宿主机ID BaremetalId string `width:"36" charset:"ascii" nullable:"false" list:"admin"` // 网络ID - NetworkId string `width:"36" charset:"ascii" nullable:"false" list:"admin"` + NetworkId string `width:"36" charset:"ascii" nullable:"false" list:"admin"` // IP地址 - IpAddr string `width:"16" charset:"ascii" list:"admin"` + IpAddr string `width:"16" charset:"ascii" list:"admin"` // MAC地址 - MacAddr string `width:"18" charset:"ascii" list:"admin"` + MacAddr string `width:"18" charset:"ascii" list:"admin"` } func (manager *SHostnetworkManager) GetMasterFieldName() string { @@ -260,4 +260,4 @@ func (manager *SHostnetworkManager) OrderByExtraFields( } return q, nil -} \ No newline at end of file +} diff --git a/pkg/compute/models/hostschedtags.go b/pkg/compute/models/hostschedtags.go index 1e02a08c32..b43c0d61e9 100644 --- a/pkg/compute/models/hostschedtags.go +++ b/pkg/compute/models/hostschedtags.go @@ -16,11 +16,11 @@ package models import ( "context" - "yunion.io/x/pkg/errors" - "yunion.io/x/sqlchemy" "yunion.io/x/jsonutils" "yunion.io/x/log" + "yunion.io/x/pkg/errors" + "yunion.io/x/sqlchemy" api "yunion.io/x/onecloud/pkg/apis/compute" "yunion.io/x/onecloud/pkg/cloudcommon/db" @@ -165,4 +165,4 @@ func (manager *SHostschedtagManager) OrderByExtraFields( } return q, nil -} \ No newline at end of file +} diff --git a/pkg/compute/models/hoststorages.go b/pkg/compute/models/hoststorages.go index 633416cdaf..3eafd917b9 100644 --- a/pkg/compute/models/hoststorages.go +++ b/pkg/compute/models/hoststorages.go @@ -368,4 +368,4 @@ func (manager *SHoststorageManager) OrderByExtraFields( } return q, nil -} \ No newline at end of file +} diff --git a/pkg/compute/models/hostwires.go b/pkg/compute/models/hostwires.go index b7407d82c8..229ab58d42 100644 --- a/pkg/compute/models/hostwires.go +++ b/pkg/compute/models/hostwires.go @@ -16,10 +16,10 @@ package models import ( "context" - "yunion.io/x/pkg/errors" "yunion.io/x/jsonutils" "yunion.io/x/log" + "yunion.io/x/pkg/errors" "yunion.io/x/sqlchemy" api "yunion.io/x/onecloud/pkg/apis/compute" @@ -253,4 +253,4 @@ func (manager *SHostwireManager) OrderByExtraFields( } return q, nil -} \ No newline at end of file +} diff --git a/pkg/compute/models/schedtagjoint.go b/pkg/compute/models/schedtagjoint.go index 4e1ec930d8..2b43fd1ab2 100644 --- a/pkg/compute/models/schedtagjoint.go +++ b/pkg/compute/models/schedtagjoint.go @@ -17,13 +17,13 @@ package models import ( "context" "fmt" - "yunion.io/x/pkg/errors" - "yunion.io/x/sqlchemy" "yunion.io/x/jsonutils" "yunion.io/x/log" + "yunion.io/x/pkg/errors" "yunion.io/x/pkg/util/reflectutils" "yunion.io/x/pkg/utils" + "yunion.io/x/sqlchemy" "yunion.io/x/onecloud/pkg/apis" api "yunion.io/x/onecloud/pkg/apis/compute" @@ -259,4 +259,4 @@ func (manager *SSchedtagJointsManager) OrderByExtraFields( } return q, nil -} \ No newline at end of file +}