Open tetherit opened 9 years ago
Can you please post the output of the same request with curl? The body seems to be non-standard.
The path is
/api/parameters/#{uri_encode(component)}/#{uri_encode(vhost)}/#{uri_encode(name)}
Sure:
$ curl "http://timeline:password@127.0.0.1:15672/api/parameters/federation-upstream/monitor/33ac8c46007794dee1a6"
{"value":{"uri":"amqp://33ac8c46007794dee1a6:password@vpn.33ac8c46007794dee1a6/monitor","reconnect-delay":30},"vhost":"monitor","component":"federation-upstream","name":"33ac8c46007794dee1a6"}
I'm also seeing the same issue with list_policies_of:
> client.list_policies_of('monitor', 'federate-me')
NoMethodError: undefined method `each_pair' for ["vhost", "monitor"]:Array
from /var/lib/gems/2.2.0/gems/hashie-3.4.1/lib/hashie/mash.rb:179:in `deep_update'
When I try to list_parameters_of by name, I get this error:
If I don't list by name, I see the parameters as expected: