From be6d2253d61fae63b5c829960cbf163c50c2efeb Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Fri, 3 Aug 2012 18:03:11 -0400 Subject: 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 --- nova/virt/libvirt/vif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit