Remove unused __init__
This is to remove unnecessary __init__ to keep code clean. Change-Id: I8952de0ceae58268fd54d6a96228b091bf18ea90
This commit is contained in:
parent
6f2112caa8
commit
d1c7cdb8c0
@ -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)
|
||||
|
@ -1696,9 +1696,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."""
|
||||
|
@ -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']
|
||||
|
@ -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)
|
||||
|
||||
|
@ -364,9 +364,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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user