From da82ee17e6ea99bf2931383ac33b0caccaaaefce Mon Sep 17 00:00:00 2001 From: Jeff Shaw Date: Mon, 8 Feb 2016 16:33:46 -0800 Subject: [PATCH] tools: fix unbinding failure handling We should call sys.exit(), not divide sys by exit(). Signed-off-by: Jeff Shaw Acked-by: Bruce Richardson --- tools/dpdk_nic_bind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dpdk_nic_bind.py b/tools/dpdk_nic_bind.py index f02454e56a..a1923c5922 100755 --- a/tools/dpdk_nic_bind.py +++ b/tools/dpdk_nic_bind.py @@ -317,7 +317,7 @@ def unbind_one(dev_id, force): f = open(filename, "a") except: print "Error: unbind failed for %s - Cannot open %s" % (dev_id, filename) - sys/exit(1) + sys.exit(1) f.write(dev_id) f.close() -- 2.20.1