You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by wf...@apache.org on 2014/05/21 00:47:31 UTC
git commit: Fix bad class reference to THttpClient.
Repository: incubator-aurora
Updated Branches:
refs/heads/master 10fce64b3 -> 39f18458d
Fix bad class reference to THttpClient.
Bugs closed: AURORA-453
Reviewed at https://reviews.apache.org/r/21735/
Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/39f18458
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/39f18458
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/39f18458
Branch: refs/heads/master
Commit: 39f18458db783e1d6797beb3566ac95682dcf320
Parents: 10fce64
Author: Bill Farner <wf...@apache.org>
Authored: Tue May 20 15:46:45 2014 -0700
Committer: Bill Farner <wf...@apache.org>
Committed: Tue May 20 15:46:45 2014 -0700
----------------------------------------------------------------------
src/main/python/apache/aurora/client/api/scheduler_client.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/39f18458/src/main/python/apache/aurora/client/api/scheduler_client.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/client/api/scheduler_client.py b/src/main/python/apache/aurora/client/api/scheduler_client.py
index 75053b7..c0089f6 100644
--- a/src/main/python/apache/aurora/client/api/scheduler_client.py
+++ b/src/main/python/apache/aurora/client/api/scheduler_client.py
@@ -58,8 +58,7 @@ class SchedulerClient(object):
raise TypeError('"cluster" must be an instance of Cluster, got %s' % type(cluster))
cluster = cluster.with_trait(SchedulerClientTrait)
if cluster.zk:
- return ZookeeperSchedulerClient(
- cluster, port=cluster.zk_port, **kwargs)
+ return ZookeeperSchedulerClient(cluster, port=cluster.zk_port, **kwargs)
elif cluster.scheduler_uri:
try:
host, port = cluster.scheduler_uri.split(':', 2)
@@ -86,7 +85,7 @@ class SchedulerClient(object):
@staticmethod
def _connect_scheduler(host, port):
- transport = THttpClient('http://%s:%s/api' % (host, port))
+ transport = THttpClient.THttpClient('http://%s:%s/api' % (host, port))
protocol = TJSONProtocol.TJSONProtocol(transport)
schedulerClient = AuroraAdmin.Client(protocol)
for _ in range(SchedulerClient.THRIFT_RETRIES):