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 /lib/puppet/util/ldap/connection.rb | |
| 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 'lib/puppet/util/ldap/connection.rb')
| -rw-r--r-- | lib/puppet/util/ldap/connection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/ldap/connection.rb b/lib/puppet/util/ldap/connection.rb index 70fe303c5..19c53a2e6 100644 --- a/lib/puppet/util/ldap/connection.rb +++ b/lib/puppet/util/ldap/connection.rb @@ -62,9 +62,9 @@ class Puppet::Util::Ldap::Connection def start begin case ssl - when :tls: + when :tls @connection = LDAP::SSLConn.new(host, port, true) - when true: + when true @connection = LDAP::SSLConn.new(host, port) else @connection = LDAP::Conn.new(host, port) |
