We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d7ee1 commit c924a2fCopy full SHA for c924a2f
src/Etcd.Microsoft.Extensions.Configuration/Client/EtcdKeyValueClient.cs
@@ -149,7 +149,14 @@ private void Authenticate(ICredentials credentials)
149
_userName = credentials.UserName;
150
}
151
152
- private IEnumerable<Mvccpb.KeyValue> GetKeys(string prefixKey) => _client.GetRange(prefixKey, GetMetadata()).Kvs;
+ private IEnumerable<Mvccpb.KeyValue> GetKeys(string prefixKey)
153
+ {
154
+ // Fix to correct read all keys
155
+ if (prefixKey == "\0")
156
+ prefixKey = "";
157
+
158
+ return _client.GetRange(prefixKey, GetMetadata()).Kvs;
159
+ }
160
161
private IEnumerable<string> GetRoles() =>
162
_client.UserGet(new AuthUserGetRequest
0 commit comments