diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-02-26 11:43:39 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-02-26 11:43:39 +1100 |
commit | 5f73eb553fd083b558fb9553b0c07b6019d0ccee (patch) | |
tree | 123ef2a9c7b8aa4e1cd52e6b98d0b3c53d626de6 /ext | |
parent | e40aea3c655e698d26c29370227b52c489e6db2b (diff) | |
download | puppet-5f73eb553fd083b558fb9553b0c07b6019d0ccee.tar.gz puppet-5f73eb553fd083b558fb9553b0c07b6019d0ccee.tar.xz puppet-5f73eb553fd083b558fb9553b0c07b6019d0ccee.zip |
Fixed #1849 - Ruby 1.9 portability: `when' doesn't like colons, replace with semicolons
Diffstat (limited to 'ext')
-rw-r--r-- | ext/puppetstoredconfigclean.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/puppetstoredconfigclean.rb b/ext/puppetstoredconfigclean.rb index f286df2df..a96ec4faf 100644 --- a/ext/puppetstoredconfigclean.rb +++ b/ext/puppetstoredconfigclean.rb @@ -57,9 +57,9 @@ adapter = pm_conf[:dbadapter] args = {:adapter => adapter, :log_level => pm_conf[:rails_loglevel]} case adapter - when "sqlite3": + when "sqlite3" args[:dbfile] = pm_conf[:dblocation] - when "mysql", "postgresql": + when "mysql", "postgresql" args[:host] = pm_conf[:dbserver] unless pm_conf[:dbserver].to_s.empty? args[:username] = pm_conf[:dbuser] unless pm_conf[:dbuser].to_s.empty? args[:password] = pm_conf[:dbpassword] unless pm_conf[:dbpassword].to_s.empty? |