Skip to content

Commit dfde96a

Browse files
authored
Merge pull request puppetlabs#1253 from ekohl/fix-port
Ensure port is a string in psql command
2 parents 95145ff + 7f810b9 commit dfde96a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

lib/puppet/provider/postgresql_psql/ruby.rb

Lines changed: 1 addition & 1 deletion
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)