diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2013-01-17 18:06:53 -0500 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2013-01-24 09:52:58 -0500 |
| commit | 4845fc2720a0ab3ff4f15fc8f3f00573b617ce5b (patch) | |
| tree | 4d8a01e2b9591c39eb3aa93b92be8c6e6df4783d /nova/virt | |
| parent | 4220e0110e1e45a1886d8a8b186aa4cdc2ef9455 (diff) | |
Fix hacking N302 import only modules
* Includes some general tools/hacking cleanup
* Fix several N302 cases
* Disable N302 until all cases are fixed
Change-Id: Iddba07ff13e10dc41a6930749044bb8c0572d279
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/hyperv/vif.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nova/virt/hyperv/vif.py b/nova/virt/hyperv/vif.py index a898d3ac2..e01006eaa 100644 --- a/nova/virt/hyperv/vif.py +++ b/nova/virt/hyperv/vif.py @@ -15,6 +15,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. +import abc import sys import uuid @@ -22,11 +23,12 @@ import uuid if sys.platform == 'win32': import wmi -from abc import abstractmethod + from nova.openstack.common import cfg from nova.openstack.common import log as logging from nova.virt.hyperv import vmutils + hyperv_opts = [ cfg.StrOpt('vswitch_name', default=None, @@ -42,11 +44,11 @@ LOG = logging.getLogger(__name__) class HyperVBaseVIFDriver(object): - @abstractmethod + @abc.abstractmethod def plug(self, instance, vif): pass - @abstractmethod + @abc.abstractmethod def unplug(self, instance, vif): pass |
