Removed unwanted self

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
Vasu1105 2021-06-03 19:24:44 +05:30
parent c801a03b88
commit 6395137a5d

View file

@ -51,7 +51,7 @@ module Inspec::Resources
end
def query(query, db = [])
raise Inspec::Exceptions::ResourceFailed, "#{resource_exception_message}" if self.resource_failed?
raise Inspec::Exceptions::ResourceFailed, "#{resource_exception_message}" if resource_failed?
psql_cmd = create_psql_cmd(query, db)
cmd = inspec.command(psql_cmd, redact_regex: /(PGPASSWORD=').+(' psql .*)/)