summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYun Mao <yunmao@gmail.com>2012-08-03 18:03:11 -0400
committerYun Mao <yunmao@gmail.com>2012-08-03 18:05:23 -0400
commitbe6d2253d61fae63b5c829960cbf163c50c2efeb (patch)
treee1c12de5901b60352540596a67ffda661c3f578e
parentbe590cfa4b0025587a956642dc859902d577f3f7 (diff)
Rename _self to self according to Python convention
If self is never used, it should probably be defined as a classmethod or a staticmethod, instead of _self. Use "self" for now to stick to python convention, and leave proper refactor to other patches. Change-Id: I71de42ffd3e83c57772b6490c52f24bcd9d1f1ea
-rw-r--r--nova/virt/libvirt/vif.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py
index 74c21fc51..d45216f85 100644
--- a/nova/virt/libvirt/vif.py
+++ b/nova/virt/libvirt/vif.py
@@ -118,7 +118,7 @@ class LibvirtOpenVswitchDriver(vif.VIFDriver):
libvirt XML. Used for libvirt versions that do not support
OVS virtual port XML (0.9.10 or earlier)."""
- def get_dev_name(_self, iface_id):
+ def get_dev_name(self, iface_id):
return "tap" + iface_id[0:11]
def plug(self, instance, vif):