mirror of https://github.com/kubernetes/kops.git
- fixing up the vetting errors found by the tests
This commit is contained in:
parent
d3badf6678
commit
684caa54e3
|
|
@ -459,7 +459,7 @@ func (t *LaunchConfiguration) buildRootDevice(cloud awsup.AWSCloud) (map[string]
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("unable to resolve image: %q: %v", image, err)
|
return nil, fmt.Errorf("unable to resolve image: %q: %v", image, err)
|
||||||
} else if img == nil {
|
} else if img == nil {
|
||||||
return nil, fmt.Errorf("unable to resolve image: %q: not found")
|
return nil, fmt.Errorf("unable to resolve image: %q: not found", image)
|
||||||
}
|
}
|
||||||
|
|
||||||
bm := make(map[string]*BlockDeviceMapping)
|
bm := make(map[string]*BlockDeviceMapping)
|
||||||
|
|
|
||||||
|
|
@ -326,7 +326,7 @@ func (t *LaunchTemplate) findAllLaunchTemplatesVersions(c *fi.Context) ([]*ec2.L
|
||||||
|
|
||||||
cloud, ok := c.Cloud.(awsup.AWSCloud)
|
cloud, ok := c.Cloud.(awsup.AWSCloud)
|
||||||
if !ok {
|
if !ok {
|
||||||
return []*ec2.LaunchTemplateVersion{}, fmt.Errorf("invalid cloud provider: %v, expected: awsup.AWSCloud", c.Cloud, "awsup.AWSCloud)")
|
return []*ec2.LaunchTemplateVersion{}, fmt.Errorf("invalid cloud provider: %v, expected: awsup.AWSCloud", c.Cloud)
|
||||||
}
|
}
|
||||||
|
|
||||||
templates, err := t.findAllLaunchTemplates(c)
|
templates, err := t.findAllLaunchTemplates(c)
|
||||||
|
|
@ -372,7 +372,7 @@ func (t *LaunchTemplate) buildRootDevice(cloud awsup.AWSCloud) (map[string]*Bloc
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("unable to resolve image: %q: %v", image, err)
|
return nil, fmt.Errorf("unable to resolve image: %q: %v", image, err)
|
||||||
} else if img == nil {
|
} else if img == nil {
|
||||||
return nil, fmt.Errorf("unable to resolve image: %q: not found")
|
return nil, fmt.Errorf("unable to resolve image: %q: not found", image)
|
||||||
}
|
}
|
||||||
|
|
||||||
bm := make(map[string]*BlockDeviceMapping)
|
bm := make(map[string]*BlockDeviceMapping)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue