fix spelling typo

Signed-off-by: yuswift <yuswift2018@gmail.com>
This commit is contained in:
yuswift
2021-07-15 11:06:07 +08:00
parent cd30e6eba5
commit e9695cba4c
18 changed files with 20 additions and 20 deletions

View File

@@ -115,7 +115,7 @@ func (p *Pipeline) ListPipelines() (*devops.PipelineList, error) {
}
klog.Errorf("API '%s' request response code is '%d'", p.Path, jErr.Code)
} else {
err = fmt.Errorf("unknow errors happend when communicate with Jenkins")
err = fmt.Errorf("unknow errors happened when communicate with Jenkins")
}
return nil, err
}

View File

@@ -237,7 +237,7 @@ func (c IPAMClient) autoAssign(handleID string, attrs map[string]string, request
func (c IPAMClient) assignFromExistingBlock(block *v1alpha1.IPAMBlock, handleID string, attrs map[string]string) (*cnet.IPNet, error) {
ips := block.AutoAssign(1, handleID, attrs)
if len(ips) == 0 {
return nil, fmt.Errorf("block %s has no availabe IP", block.BlockName())
return nil, fmt.Errorf("block %s has no available IP", block.BlockName())
}
err := c.incrementHandle(handleID, block, 1)