Skip to content

Clearing #58

Description

@davidterranova

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions