2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-13 07:14:37 +00:00
Blake Covarrubias 1ee8655bfc
cli: Fix broken KV import on Windows ()
Consul 1.10 (PR ) introduced the ability to specify a prefix when
importing KV's. This however introduced a regression on Windows
systems which breaks `kv import`. The key name is joined with
specified`-prefix` using `filepath.Join()` which uses a forward slash
(/) to delimit values on Unix-based systems, and a backslash (\) to
delimit values on Windows – the latter of which is incompatible with
Consul KV paths.

This commit replaces filepath.Join() with path.Join() which uses a
forward slash as the delimiter, providing consistent key join behavior
across supported operating systems.

Fixes 
2021-08-10 14:42:05 -07:00

4 lines
70 B
Plaintext

```release-note:bug
cli: Fix broken KV import command on Windows.
```