Skip to content

Commit e3a7b22

Browse files
committed
fix typo/lint
1 parent 74ee71a commit e3a7b22

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cloud/scheduler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Filter plugins filter the node based on nodename, overcommit ratio etc.
1414

1515
Regex plugin is a one of the default Filter Plugin of qemu-scheduler. You can specify node name as regex format.
1616
```sh
17-
key: node.qemu-scheduler/reges
17+
key: node.qemu-scheduler/regex
1818
value(example): node[0-9]+
1919
```
2020

cloud/scheduler/scheduler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,8 @@ func (s *Scheduler) WaitStatus(ctx context.Context, config *api.VirtualMachineCr
195195
// create new qemu with given spec and context
196196
func (s *Scheduler) CreateQEMU(ctx context.Context, config *api.VirtualMachineCreateOptions) (framework.SchedulerResult, error) {
197197
s.schedulingQueue.Add(ctx, config)
198-
status := framework.NewCycleState()
199198
var err error
200-
status, err = s.WaitStatus(ctx, config)
199+
status, err := s.WaitStatus(ctx, config)
201200
if err != nil {
202201
return status.Result(), err
203202
}

0 commit comments

Comments
 (0)