def read_data(item, parent = '')
      me = File.join(parent, item)

      # me will contain /metadata if secrets_version 2 due to list_prefix method
      if secrets_version == "2"
        me = me.sub(/metadata/, "data")
        # It's possible for a vault secret to be nil...
        if vault_client.logical.read(me).nil?
          warn red("vault secret '#{me}' contains a null vaule, ignoring...")
          {}
        else
          vault_client.logical.read(me).data[:data]
        end
      else
        vault_client.logical.read(me).data
      end
    end
def read_data(item, parent = '')
      me = File.join(parent, item)

      # me will contain /metadata if secrets_version 2 due to list_prefix method
      if secrets_version == "2"
        me = me.sub(/metadata/, "data")
        # It's possible for a vault secret to be nil...
        if vault_client.logical.read(me).nil?
          warn red("vault secret '#{me}' contains a null vaule, ignoring...")
          {}
        else
          vault_client.logical.read(me).data[:data]
        end
      else
        vault_client.logical.read(me).data
      end
    end
Used by list_recursive method only
 API version 2 uses /metadata path to list, but /data to read.
 TODO Update to use kv from vault-ruby once available.