tools: fix unbinding failure handling
authorJeff Shaw <jeffrey.b.shaw@intel.com>
Tue, 9 Feb 2016 00:33:46 +0000 (16:33 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 9 Feb 2016 11:54:09 +0000 (12:54 +0100)
We should call sys.exit(), not divide sys by exit().

Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
tools/dpdk_nic_bind.py

index f02454e..a1923c5 100755 (executable)
@@ -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()