Skip to content

Commit

Permalink
Merge PR #22 fixing 'get-kubeconfig' (thanks @andyz-dev and thanks @c…
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed May 3, 2019
2 parents cb6d8a7 + 1294b5b commit a9b55a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,13 @@ func GetKubeConfig(c *cli.Context) error {
server, err := docker.ContainerList(ctx, types.ContainerListOptions{
Filters: filters,
})

if err != nil {
return fmt.Errorf("Couldn't get server container for cluster %s\n%+v", c.String("name"), err)
return fmt.Errorf("Failed to get server container for cluster %s\n%+v", c.String("name"), err)
}

if len(server) == 0 {
return fmt.Errorf("No server container for cluster %s", c.String("name"))
}

// get kubeconfig file from container and read contents
Expand Down

0 comments on commit a9b55a2

Please sign in to comment.