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