From 61f24ad7892f796023232df7dfcbc32790dbb3fd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 10 Feb 2014 19:41:06 -0500 Subject: [PATCH] Try unix socket by default in confetty If the unix socket is available and nothing specified, try to use that --- bin/confetty | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/confetty b/bin/confetty index 711d39fc..d57026e3 100755 --- a/bin/confetty +++ b/bin/confetty @@ -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