diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-01-24 22:59:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-01-24 22:59:13 +0000 |
| commit | f9012e39ee5582192db9289d34df3adaddda2ad1 (patch) | |
| tree | d0c2debadde670b604fdd5cd2ec2cf42c249a769 /nova/virt | |
| parent | 0364b173f9c2638b99619c29ada704a483626e4b (diff) | |
| parent | 4845fc2720a0ab3ff4f15fc8f3f00573b617ce5b (diff) | |
Merge "Fix hacking N302 import only modules"
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 |
