diff --git a/lib/vault/api/logical.rb b/lib/vault/api/logical.rb index 49754c52..b5e33671 100644 --- a/lib/vault/api/logical.rb +++ b/lib/vault/api/logical.rb @@ -42,9 +42,9 @@ def list(path, options = {}) # the path to read # # @return [Secret, nil] - def read(path, options = {}) + def read(path, params = {}, options = {}) headers = extract_headers!(options) - json = client.get("/v1/#{encode_path(path)}", {}, headers) + json = client.get("/v1/#{encode_path(path)}", params, headers) return Secret.decode(json) rescue HTTPError => e return nil if e.code == 404