aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2013-04-17 17:35:04 -0700
committerBen Pfaff <blp@nicira.com>2013-04-18 10:02:25 -0700
commitafd9a22b1b13b1b3e996f3eecea899993aa069dc (patch)
treec896350f294b0be8fdb352288cd1a76db094f4cd /python
parent0deea60f1db6d6f14e3244724a58a5e1997dee99 (diff)
python: fix a typo error in python/ovs/socket_util.py.
The commit 89d7ffa9 (python: Workaround UNIX socket path length limits), fixes most failed tests. But it has a typo and the typo causes the failure of test <unixctl server errors - Python> when the path length is very long (e.g. more than 90 characters). This patch fixes the above issue. Signed-off-by: Alex Wang <alexw@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'python')
-rw-r--r--python/ovs/socket_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py
index 7bfefc49..7dac5bb3 100644
--- a/python/ovs/socket_util.py
+++ b/python/ovs/socket_util.py
@@ -87,7 +87,7 @@ def make_unix_socket(style, nonblock, bind_path, connect_path):
try:
connect_dirfd = os.open(dirname, os.O_DIRECTORY | os.O_RDONLY)
except OSError, err:
- return get_exception_errno(e), None
+ return get_exception_errno(err), None
short_connect_path = "/proc/self/fd/%d/%s" % (connect_dirfd, basename)
if bind_path is not None:
@@ -96,7 +96,7 @@ def make_unix_socket(style, nonblock, bind_path, connect_path):
try:
bind_dirfd = os.open(dirname, os.O_DIRECTORY | os.O_RDONLY)
except OSError, err:
- return get_exception_errno(e), None
+ return get_exception_errno(err), None
short_bind_path = "/proc/self/fd/%d/%s" % (bind_dirfd, basename)
try: