Skip to content

Commit

Permalink
clusterctl/cmd: improve error message for not implemented interface (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xmudrii authored and k8s-ci-robot committed Aug 15, 2018
1 parent 32c2e4d commit 051f338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clusterctl/cmd/create_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/golang/glog"
"github.com/spf13/cobra"
"sigs.k8s.io/cluster-api/clusterctl/clusterdeployer"
"sigs.k8s.io/cluster-api/clusterctl/clusterdeployer/minikube"
"sigs.k8s.io/cluster-api/clusterctl/clusterdeployer/externalclusterprovisioner"
"sigs.k8s.io/cluster-api/clusterctl/clusterdeployer/minikube"
clustercommon "sigs.k8s.io/cluster-api/pkg/apis/cluster/common"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"
"sigs.k8s.io/cluster-api/pkg/util"
Expand Down Expand Up @@ -170,7 +170,7 @@ func getProvider(name string) (clusterdeployer.ProviderDeployer, error) {
}
provider, ok := provisioner.(clusterdeployer.ProviderDeployer)
if !ok {
return nil, fmt.Errorf("provider for %s does not implement interface", name)
return nil, fmt.Errorf("provider for %s does not implement ProviderDeployer interface", name)
}
return provider, nil
}

0 comments on commit 051f338

Please sign in to comment.