Commit 55831b52f05fcf4c1631b728d3f6ce4fab66a118:
Revert "if all hosts are down, give up"
This reverts commit 60f24d0cab030cf6d64ce75c23d05b1ac33bdda7.
Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>
------------------------------------------------------------
lib/whimsy/asf/ldap.rb | ++ --
------------------------------------------------------------
4 changes: 2 additions, 2 deletions.
------------------------------------------------------------
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index f73646b..0376c64 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -73,7 +73,7 @@ def self.puppet_ldapservers
# connect to LDAP
def self.connect
- host.length.times do
+ loop do
host = next_host
Wunderbar.info "Connecting to LDAP server: #{host}"
@@ -97,8 +97,8 @@ def self.connect
Wunderbar.warn "Error connecting to LDAP server #{host}: " +
re.message + " (continuing)"
end
- end
+ end
Wunderbar.error "Failed to connect to any LDAP host"
return nil
end