From 5e66936e7d00838b9f355f2fb3873ba89f07cb56 Mon Sep 17 00:00:00 2001 From: Bartek Jarocki Date: Thu, 28 Mar 2019 14:32:41 +0000 Subject: [PATCH] accept param on logical.read method * this is where we get to pass specific `version` number --- lib/vault/api/logical.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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