From c9e573955bc6ae22c2508ccc640690828b150152 Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Sat, 25 Aug 2012 09:53:38 -0400 Subject: Rename _unplug_vifs to unplug_vifs self._vmops is of type VMWareVMOps, which doesn't have unplug_vifs defined. Partially fix bug 1037183 Change-Id: I561788fbfea1d221e13850e93593f8b9a96d9f7c --- nova/virt/vmwareapi/vmops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/virt/vmwareapi/vmops.py b/nova/virt/vmwareapi/vmops.py index f650316da..541e16e44 100644 --- a/nova/virt/vmwareapi/vmops.py +++ b/nova/virt/vmwareapi/vmops.py @@ -588,7 +588,7 @@ class VMWareVMOps(object): " while un-registering the VM: %s") % str(excep), instance=instance) - self._unplug_vifs(instance, network_info) + self.unplug_vifs(instance, network_info) # Delete the folder holding the VM related content on # the datastore. @@ -827,7 +827,7 @@ class VMWareVMOps(object): for (network, mapping) in network_info: self._vif_driver.plug(instance, (network, mapping)) - def _unplug_vifs(self, instance, network_info): + def unplug_vifs(self, instance, network_info): """Unplug VIFs from networks.""" for (network, mapping) in network_info: self._vif_driver.unplug(instance, (network, mapping)) -- cgit