Skip to content
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

Clearing #58

Open
davidterranova opened this issue Jul 11, 2016 · 0 comments
Open

Clearing #58

davidterranova opened this issue Jul 11, 2016 · 0 comments

Comments

@davidterranova
Copy link

Hi,
I m trying to clear all stored keys & values,
Could you tell me why none of these methods work ?

client.delete('/', true)
# or
client.get('/').children.each { |k| client.delete(k.key, true) }

I got the following error :

NoMethodError:
       undefined method `map' for true:TrueClass
       Did you mean?  tap
       # /Users/xxxxxxx/.rvm/gems/ruby-2.3.1/gems/etcd-0.3.0/lib/etcd/client.rb:151:in `build_http_request'
       # /Users/xxxxxxx/.rvm/gems/ruby-2.3.1/gems/etcd-0.3.0/lib/etcd/client.rb:102:in `api_execute'
       # /Users/xxxxxxx/.rvm/gems/ruby-2.3.1/gems/etcd-0.3.0/lib/etcd/keys.rb:48:in `delete'

It doesn't work with or without the recursive parameter on the delete method.

Any idea ?
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant