summaryrefslogtreecommitdiff
path: root/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
diff options
context:
space:
mode:
Diffstat (limited to 'xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py')
-rw-r--r--xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
index d9eda6adc..c65fb3da4 100644
--- a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
+++ b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
@@ -54,7 +54,7 @@ def netdev_get_driver_name(netdev):
symlink = '%s/sys/class/net/%s/device/driver' % (root_prefix(), netdev)
try:
target = os.readlink(symlink)
- except OSError, e:
+ except OSError as e:
log("%s: could not read netdev's driver name (%s)" % (netdev, e))
return None