diff --git a/pkg/keeper/keeper.go b/pkg/keeper/keeper.go index 794e1335..6e8d522d 100644 --- a/pkg/keeper/keeper.go +++ b/pkg/keeper/keeper.go @@ -108,7 +108,11 @@ func (k *Keeper) GetReplicatedAccessPath(userDirectory string) (string, error) { if zookeeperPathNode == nil { return "", fmt.Errorf("can't find %s in %s", xPathQuery, k.xmlConfigFile) } - return strings.TrimSuffix(zookeeperPathNode.InnerText(), "/"), nil + zookeeperPath := zookeeperPathNode.InnerText() + if zookeeperPath != "/" { + zookeeperPath = strings.TrimSuffix(zookeeperPathNode.InnerText(), "/") + } + return zookeeperPath, nil } func (k *Keeper) Dump(prefix, dumpFile string) (int, error) {