You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling Diplomat::Acl.info(a_uuid), the method raise an exception if the acl does not exist.
The expected output is to return nil instead.
With consul 0.5.2:
JSON::ParserError: 757: unexpected token at 'null'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.3/lib/json/common.rb:155:in parse' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.3/lib/json/common.rb:155:inparse'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/diplomat-0.15.0/lib/diplomat/rest_client.rb:76:in parse_body' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/diplomat-0.15.0/lib/diplomat/acl.rb:30:ininfo'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/diplomat-0.15.0/lib/diplomat/rest_client.rb:46:in method_missing' from (irb):9 from /opt/chef/embedded/bin/irb:11:in
'
In this case, the body is the string "null" instead of being empty/nil.
The text was updated successfully, but these errors were encountered:
When calling
Diplomat::Acl.info(a_uuid)
, the method raise an exception if the acl does not exist.The expected output is to return
nil
instead.With consul 0.5.2:
In this case, the body is the string "null" instead of being empty/nil.
The text was updated successfully, but these errors were encountered: