Closed bs-sdev closed 7 years ago
@bs-sdev you are trying to do something that is nowhere to be found in our documentation.
you should do something like
dict_value = {'media': 42, 'min_duration': 0}
key_prefix = '/test'
for k, v in dict_value.iteritems():
key = os.path.join(key_prefix, k)
client.write(key, v)
there is a good reason why if you tell python-etcd to write a dict to etcd it will do it: that many people (me included) like to store data structures into it.
@lavagetto, hello! Is it possible to make this operation atomic?
Hello everyone,
I Would like insert a dict to create a datastructure, here is an example:
dict_value = {'media': 42, 'min_duration': 0}
client.write("/test", dict_value)
If I take a look on my browser (I could make it via a client.read ....), here is the result:
{
}
I would like something like this:
{
}
Does someone have this problem? Did I miss something? Or maybe it is not implemented into the python-etcd client and I should make it via a curl command???
Thanks.