Skip to content

Commit

Permalink
Merge pull request #2 from rschultheis/fixaroo
Browse files Browse the repository at this point in the history
Bug fix: was some bad logic on using eureka_port
  • Loading branch information
KristianOellegaard committed Aug 30, 2014
2 parents d19e56a + e4ca397 commit cadc7e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eureka/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6"
__version__ = "0.6.1"
2 changes: 1 addition & 1 deletion eureka/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_eureka_urls(self):
random.shuffle(eureka_instances) # Shuffle order for load balancing
for eureka_instance in eureka_instances:
server_uri = "http://%s" % eureka_instance
if self.eureka_port is None:
if self.eureka_port:
server_uri += ":%s" % self.eureka_port
eureka_instance_url = urljoin(server_uri, self.context, "/")
if not eureka_instance_url.endswith("/"):
Expand Down

0 comments on commit cadc7e3

Please # to comment.