Merge "Remove unused __init__"

This commit is contained in:
Jenkins 2016-07-14 03:34:21 +00:00 committed by Gerrit Code Review
commit 1d297a3c70
6 changed files with 0 additions and 19 deletions

View File

@ -41,9 +41,6 @@ def _marshall_volume_type_access(vol_type):
class VolumeTypeAccessController(object):
"""The volume type access API controller for the OpenStack API."""
def __init__(self):
super(VolumeTypeAccessController, self).__init__()
def index(self, req, type_id):
context = req.environ['cinder.context']
authorize(context)

View File

@ -1703,9 +1703,6 @@ class API(base.Base):
class HostAPI(base.Base):
def __init__(self):
super(HostAPI, self).__init__()
"""Sub-set of the Volume Manager API for managing host operations."""
def set_host_enabled(self, context, host, enabled):
"""Sets the specified host's ability to accept new volumes."""

View File

@ -270,10 +270,6 @@ class CreateSnapshotOnFinishTask(NotifySnapshotActionTask):
Reversion strategy: N/A
"""
def __init__(self, db, event_suffix, host):
super(CreateSnapshotOnFinishTask, self).__init__(db, event_suffix,
host)
def execute(self, context, snapshot, new_status):
LOG.debug("Begin to call CreateSnapshotOnFinishTask execute.")
snapshot_id = snapshot['id']

View File

@ -16,9 +16,6 @@ from cinder.volume.targets import iscsi
class FakeTarget(iscsi.ISCSITarget):
VERSION = '0.1'
def __init__(self, *args, **kwargs):
super(FakeTarget, self).__init__(*args, **kwargs)
def _get_target_and_lun(self, context, volume):
return(0, 0)

View File

@ -358,9 +358,6 @@ class SanISCSITarget(ISCSITarget):
and local block devices when we create and manage our own targets.
"""
def __init__(self, *args, **kwargs):
super(SanISCSITarget, self).__init__(*args, **kwargs)
@abc.abstractmethod
def create_export(self, context, volume, volume_path):
pass

View File

@ -45,9 +45,6 @@ class TgtAdm(iscsi.ISCSITarget):
</target>
""")
def __init__(self, *args, **kwargs):
super(TgtAdm, self).__init__(*args, **kwargs)
def _get_target(self, iqn):
(out, err) = utils.execute('tgt-admin', '--show', run_as_root=True)
lines = out.split('\n')