[e2e] Fix bug in EtcdctlV3.HashKV()

Signed-off-by: Oleg Guba <oleg@dropbox.com>
This commit is contained in:
Oleg Guba
2022-10-20 17:37:06 -04:00
parent bf6a1d7264
commit a466d5cc2e

View File

@@ -337,8 +337,8 @@ func (ctl *EtcdctlV3) HashKV(ctx context.Context, rev int64) ([]*clientv3.HashKV
return nil, err
}
resp := make([]*clientv3.HashKVResponse, len(epHashKVs))
for _, e := range epHashKVs {
resp = append(resp, e.HashKV)
for i, e := range epHashKVs {
resp[i] = e.HashKV
}
return resp, err
}