Skip to content

Commit

Permalink
Merge pull request #14 from wyukawa/add-username-password
Browse files Browse the repository at this point in the history
add username and password to argument of TOpenSessionReq constructor.
  • Loading branch information
BradRuderman committed Jun 8, 2014
2 parents 90478ee + 58002ca commit 6c3931b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhs2/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, host=None, port=10000, authMechanism=None, user=None, passwor

self.client = TCLIService.Client(TBinaryProtocol(transport))
transport.open()
res = self.client.OpenSession(TOpenSessionReq(configuration=configuration))
res = self.client.OpenSession(TOpenSessionReq(username=user, password=password, configuration=configuration))
self.session = res.sessionHandle
if database is not None:
with self.cursor() as cur:
Expand Down

0 comments on commit 6c3931b

Please sign in to comment.