-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with list convertions #22
Comments
Etcd only handles strings natively for a key, also it doesn't support lists per default this is simulated in this manner. I could add some logic that would assume that if there are only integer keys that it's a list. It would also be possible to create an identifier like "list": "true" on import. |
I'm using the import/export functions of etcdtool from different sources, therefore I need both jsons to be equal. |
I'll look into adding an option for this like "--num-infer-list". |
Hi there!
I'm facing a problem trying to import/export some data into etcd using etcdtool. Since lists are converted into json objects creating directories using the index as the key, when I load a json file with a list and then try to export the destination key, both json files differ.
It would be great to export the directory so the resulting json file is the same that was loaded (expected behavior: when all the keys in a directory are whole numbers, then convert them into a list). Maybe it can be added as an optional parameter (e.g. --keep-lists)?.
The text was updated successfully, but these errors were encountered: