Skip to content

Commit

Permalink
fix dir list error
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Oct 25, 2017
1 parent b1cfb22 commit 24d7217
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions store/etcd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"path/filepath"
"strings"

"context"

Expand Down Expand Up @@ -152,8 +151,8 @@ func getContainerDeployData(prefix string, nodes etcdclient.Nodes) []string {
for _, node := range nodes {
if len(node.Nodes) > 0 {
result = append(result, getContainerDeployData(node.Key, node.Nodes)...)
} else {
key := strings.TrimLeft(strings.TrimLeft(node.Key, prefix), "/")
} else if !node.Dir {
key := node.Key[len(prefix)+1:]
result = append(result, key)
}
}
Expand Down

0 comments on commit 24d7217

Please sign in to comment.