From 588aa3625da1272a1225e01ddd0f70d02f7beac9 Mon Sep 17 00:00:00 2001 From: Yaguang Tang Date: Mon, 22 Apr 2013 17:08:09 +0800 Subject: [PATCH] Remove unnecessary method argument. The 'self' argument is unnecessary and when the the method is invoked, cause parameters error. Fix bug #1171376 Change-Id: I612b466a955cb8418855849119599222ba6479d3 --- nova/virt/vmwareapi/vif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/vmwareapi/vif.py b/nova/virt/vmwareapi/vif.py index 4fd6611b53..ed68df33ca 100644 --- a/nova/virt/vmwareapi/vif.py +++ b/nova/virt/vmwareapi/vif.py @@ -34,7 +34,7 @@ vmwareapi_vif_opts = [ CONF.register_opts(vmwareapi_vif_opts) -def ensure_vlan_bridge(self, session, vif, cluster=None): +def ensure_vlan_bridge(session, vif, cluster=None): """Create a vlan and bridge unless they already exist.""" vlan_num = vif['network'].get_meta('vlan') bridge = vif['network']['bridge']