Skip to content

Commit 189dd37

Browse files
committed
Fix user argument to prestoclient
The port was being passed to prestoclient instead of the user. In addition to being incorrect, this was causing a TypeError when trying to log the user information if the port was an int. Testing: confirmed error disappered
1 parent ad509e5 commit 189dd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prestoadmin/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def service(control=None):
183183

184184

185185
def check_status_for_control_commands():
186-
client = PrestoClient(env.host, env.port)
186+
client = PrestoClient(env.host, env.user, env.port)
187187
print('Waiting to make sure we can connect to the Presto server on %s, '
188188
'please wait. This check will time out after %d minutes if the '
189189
'server does not respond.'

0 commit comments

Comments
 (0)