Skip to content

Commit

Permalink
python: fix a typo error in python/ovs/socket_util.py.
Browse files Browse the repository at this point in the history
The commit 89d7ffa (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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
yew011 authored and blp committed Apr 18, 2013
1 parent 1638b90 commit 369932c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ signed off on commits in the Open vSwitch version control repository.

Aaron Rosen [email protected]
Alexey I. Froloff [email protected]
Alex Wang [email protected]
Andrew Evans [email protected]
Andrew Lambeth [email protected]
Andy Southgate [email protected]
Expand Down
4 changes: 2 additions & 2 deletions python/ovs/socket_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 369932c

Please sign in to comment.