Skip to content

Commit d338b77

Browse files
committed
More FrozenString fixes
1 parent 7581d21 commit d338b77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/sql.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
def get(sql, database, user, port, password, host)
99
env_hash = { 'PGPASSWORD' => password } unless password.nil?
1010
cmd_string = "psql -c \"#{sql}\""
11-
cmd_string << " --dbname=#{database}" unless database.nil?
12-
cmd_string << " --username=#{user}" unless user.nil?
13-
cmd_string << " --port=#{port}" unless port.nil?
14-
cmd_string << " --host=#{host}" unless host.nil?
11+
cmd_string += " --dbname=#{database}" unless database.nil?
12+
cmd_string += " --username=#{user}" unless user.nil?
13+
cmd_string += " --port=#{port}" unless port.nil?
14+
cmd_string += " --host=#{host}" unless host.nil?
1515
stdout, stderr, status = Open3.capture3(env_hash, cmd_string)
1616
raise Puppet::Error, stderr if status != 0
1717
{ status: stdout.strip }

0 commit comments

Comments
 (0)