Skip to content

Commit c5c85e1

Browse files
authored
Merge pull request puppetlabs#1253 from ekohl/fix-port
Ensure port is a string in psql command
2 parents 8fe032f + 5b14a12 commit c5c85e1

File tree

1 file changed

+1
-1
lines changed
  • lib/puppet/provider/postgresql_psql

1 file changed

+1
-1
lines changed

Diff for: lib/puppet/provider/postgresql_psql/ruby.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def run_sql_command(sql)
1515

1616
command = [resource[:psql_path]]
1717
command.push('-d', resource[:db]) if resource[:db]
18-
command.push('-p', resource[:port]) if resource[:port]
18+
command.push('-p', resource[:port].to_s) if resource[:port]
1919
command.push('-t', '-X', '-c', sql)
2020

2121
environment = fetch_environment

0 commit comments

Comments
 (0)