2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 04:07:51 +00:00

Try unix socket by default in confetty

If the unix socket is available and nothing specified, try to use that
This commit is contained in:
Jarrod Johnson 2014-02-10 19:41:06 -05:00
parent 0d425f1f9f
commit 61f24ad789

View File

@ -254,6 +254,8 @@ if opts.server: # going over a TLS network
server = connect_tls_server(opts.server)
elif opts.unixsock:
server = connect_unix_server(opts.unixsock)
elif os.path.exists("/var/run/confluent/api.sock"):
server = connect_unix_server("/var/run/confluent/api.sock")
#Next stop, reading and writing from whichever of stdin and server goes first.
#see pyghmi code for solconnect.py