Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Removed escaping from DROP ROLE due to error being thrown while dropping user. #148

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license "MIT"
description "Installs PostgreSQL, The world's most advanced open source database."
long_description IO.read(File.join(File.dirname(__FILE__), "README.md"))
version "0.16.1"
version "0.16.3"

recipe "postgresql", "Set up the apt repository and install dependent packages"
recipe "postgresql::apt_repository", "Internal recipe to setup the apt repository"
Expand Down
2 changes: 1 addition & 1 deletion providers/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def whyrun_supported?
converge_by "Drop PostgreSQL User #{new_resource.name}" do
execute "drop postgresql user #{new_resource.name}" do
user "postgres"
command %(psql -c 'DROP ROLE IF EXISTS \\\"#{new_resource.name}\\\"')
command %(psql -c 'DROP ROLE IF EXISTS "#{new_resource.name}"')
sensitive true
end

Expand Down