Clean up debug
Change-Id: Ie8050a8a2e7827068c56fd6269d58beb6ed2013f
diff --git a/admin.py b/admin.py
index 2579f96..c91bfba 100644
--- a/admin.py
+++ b/admin.py
@@ -55,20 +55,15 @@
ipc.client_connect('localhost', config.vland.port)
msg['client_name'] = 'admin.py'
msg['type'] = msgtype
-# print 'Sending:'
-# print msg
ipc.client_send(msg)
ret = ipc.client_recv_and_close()
if 'response' not in ret:
raise SocketError("Badly-formed response from VLANd server")
if ret['response'] == "ERROR":
- raise InputError("VLANd server said: %s" % ret['error'])
-# print 'VLANd said in reply:'
-# print ret
+ print "Input error: VLANd server said \"%s\"" % ret['error']
+ sys.exit(1)
return ret['data']
-#print '%s' % banner
-
config = VlanConfig(filenames=('./vland.cfg',))
usage = 'Usage: %prog --command [command options]'