Skip to content

Commit

Permalink
Fix ami error message
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjohnson01 committed May 10, 2019
1 parent b991ad1 commit 0ef1652
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ami/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/aws/aws-sdk-go/service/ec2/ec2iface"

api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
"github.com/wintoncode/eksctl/pkg/ami"
"fmt"
)

Expand Down Expand Up @@ -54,7 +53,7 @@ func Use(api ec2iface.EC2API, ng *api.NodeGroup) error {

// This will never return more than one as we are looking up a single ami id
if len(output.Images) < 1 {
return ami.NewErrNotFound(ng.AMI)
return NewErrNotFound(ng.AMI)
}

// Instance-store AMIs cannot have their root volume size managed
Expand Down

0 comments on commit 0ef1652

Please sign in to comment.