Skip to content

Commit

Permalink
Fix "TypeError: can only concatenate list (not tuple) to list" at `…
Browse files Browse the repository at this point in the history
…cluster.py` line 946.

I should not merge PRs at the end of working day ...
  • Loading branch information
riccardomurri committed Jan 6, 2016
1 parent 08dbd12 commit 697358f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions elasticluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,9 @@ def connect(self, keyfile=None):
log.debug("IP %s does not seem to belong to %s anymore. Ignoring!", self.preferred_ip, self.name)
self.preferred_ip = ips[0]

for ip in [self.preferred_ip] + ips:
if not ip: continue
for ip in itertools.chain([self.preferred_ip], ips):
if not ip:
continue
try:
log.debug("Trying to connect to host %s (%s)",
self.name, ip)
Expand Down

0 comments on commit 697358f

Please sign in to comment.