Skip to content

Commit

Permalink
vet: pairs not separated by spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed May 27, 2020
1 parent c18d347 commit b99157f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/compute/guests.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ type GuestDiskInfo struct {
DiskType string `json:"disk_type"`
Index int8 `json:"index"`
SizeMb int `json:"size"`
DiskFormat string `json:"disk_format"'`
DiskFormat string `json:"disk_format"`
Driver string `json:"driver"`
CacheMode string `json:"cache_mode"`
AioMode string `json:"aio_mode"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/compute/scaling_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ type ScalingPolicyListInput struct {
// description: trigger type
// enum: timing,cycel,alarm
// example: alarm
TriggerType string `json:"trigger_type""`
TriggerType string `json:"trigger_type"`
}
2 changes: 1 addition & 1 deletion pkg/apis/compute/scaling_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ScalingCycleTimerCreateInput struct {

// description: 周期类型
// enum: day,week,month
CycleType string `json:"cycle_type""`
CycleType string `json:"cycle_type"`

// description: 分(0-59)
// example: 13
Expand Down
2 changes: 1 addition & 1 deletion pkg/compute/models/scaling_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type SScalingGroup struct {
ShrinkPrinciple string `width:"32" charset:"ascii" default:"earliest" create:"optional" list:"user" update:"user" get:"user"`

HealthCheckMode string `width:"32" charset:"ascii" default:"normal" create:"optional" list:"user" update:"user" get:"user"`
HealthCheckCycle int `nullable:"false" default:"300" create:"optional" list:"user" update:"user" get:"user"'`
HealthCheckCycle int `nullable:"false" default:"300" create:"optional" list:"user" update:"user" get:"user"`
HealthCheckGov int `nullable:"false" default:"180" create:"optional" list:"user" update:"user" get:"user"`

LoadbalancerBackendPort int `nullable:"false" default:"80" create:"optional" list:"user" get:"user"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/mcclient/options/monitor/suggestsysrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type SuggestRuleCreateOptions struct {
Name string `help:"Name of the alert"`
Type string `help:"Type of suggest rule" choices:"EIP_UNUSED|DISK_UNUSED|LB_UNUSED|SCALE_DOWN"`
Enabled bool `help:"Enable rule"`
Period string `help:"Period of suggest rule e.g. '5s', '1m'" default:"30s""`
Period string `help:"Period of suggest rule e.g. '5s', '1m'" default:"30s"`
}

func (opt SuggestRuleCreateOptions) Params() (jsonutils.JSONObject, error) {
Expand All @@ -57,7 +57,7 @@ type SuggestRuleUpdateOptions struct {
SuggestSysRuleAlertSettingOptions
ID string `help:"ID or name of the alert" json:"-"`
Name string `help:"Name of the alert"`
Period string `help:"Period of suggest rule e.g. '5s', '1m'" default:"30s""`
Period string `help:"Period of suggest rule e.g. '5s', '1m'" default:"30s"`
Enabled bool `help:"Enable rule"`
Type string `help:"Type of suggest rule" choices:"EIP_UNUSED|"`
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/monitor/models/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type SAlert struct {
// Frequency is evaluate period
Frequency int64 `nullable:"false" list:"user" create:"required" update:"user"`
Settings jsonutils.JSONObject `nullable:"false" list:"user" create:"required" update:"user"`
Level string `charset:"ascii" width:"36"nullable:"false" default:"normal" list:"user" update:"user"`
Level string `charset:"ascii" width:"36" nullable:"false" default:"normal" list:"user" update:"user"`
Message string `charset:"utf8" list:"user" create:"optional" update:"user"`
UsedBy string `charset:"ascii" list:"user"`

Expand Down
2 changes: 1 addition & 1 deletion pkg/multicloud/esxi/shell/virtualmachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func init() {
TEMPLATEID string `help:"id of template ma"`
NAME string `help:"New VM's name'"`
Uuid string `help:"Uuid of new VM"`
CpuNum int `help:"Number of CPU""`
CpuNum int `help:"Number of CPU"`
MemSize int `help:"Size of Memory(MB)"`
}
shellutils.R(&VirtualMachineCloneOptions{}, "vm-clone", "Clone vm", func(cli *esxi.SESXiClient,
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/redfish/idrac/idrac.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ type iDracComponenct struct {
}

type iDracAttribute struct {
Name string `json:"Name""`
Name string `json:"Name"`
Value string `json:"Value"`
}

Expand Down

0 comments on commit b99157f

Please sign in to comment.