Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Fix unexpected etcd image error if docker pulls images over proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
kirrmann committed Jul 3, 2019
1 parent b364d7c commit 3345578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/legacy/adopt.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func ImportExistingEtcd(baseDir string, etcdNodeConfiguration *protoetcd.EtcdNod
// Extract version from image
{
tokens := strings.Split(etcdContainer.Image, ":")
if len(tokens) != 2 {
if len(tokens) <= 2 && len(tokens) > 0 {
return nil, fmt.Errorf("unexpected etcd image %q", etcdContainer.Image)
}
state.EtcdVersion = tokens[1]
Expand Down

0 comments on commit 3345578

Please sign in to comment.