Remove unecessary pass

Remove unecessary "pass" where they are not needed.

Change-Id: I200a3c0e40720cd53694ae157861d62dee42ab1f
Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
Chuck Short 2018-09-25 15:12:11 -04:00
parent 4580c56058
commit 348b7a9f7d
8 changed files with 0 additions and 13 deletions

View File

@ -112,7 +112,6 @@ disable=
signature-differs,
star-args,
super-init-not-called,
unnecessary-pass,
unpacking-non-sequence,
unused-argument,
unused-import,

View File

@ -291,7 +291,6 @@ class API(base.Base):
"Do not need to create again.",
{'grp': group.id,
'vol_type': volume_type_id})
pass
# Since group snapshot is passed in, the following call will
# create a db entry for the volume, but will not call the
@ -374,7 +373,6 @@ class API(base.Base):
"Do not need to create again.",
{'grp': group.id,
'vol_type': volume_type_id})
pass
# Since source_group is passed in, the following call will
# create a db entry for the volume, but will not call the

View File

@ -1238,8 +1238,6 @@ class API(base.Base):
def get_snapshot_metadata_value(self, snapshot, key):
LOG.info("Get snapshot metadata value not implemented.",
resource=snapshot)
# FIXME(jdg): Huh? Pass?
pass
def get_volumes_image_metadata(self, context):
context.authorize(vol_meta_policy.GET_POLICY)

View File

@ -51,8 +51,6 @@ class FJDXFCDriver(driver.FibreChannelDriver):
LOG.error('pywbem could not be imported! '
'pywbem is necessary for this volume driver.')
pass
def create_volume(self, volume):
"""Create volume."""
LOG.debug('create_volume, '

View File

@ -89,7 +89,6 @@ class HPE3PARDriverBase(driver.ManageableVD,
"time. Since replication is enabled, "
"listing replication targets and failing over "
"a volume can still be performed.")
pass
else:
raise
return common

View File

@ -1726,7 +1726,6 @@ class HPE3PARCommon(object):
vluns = self.client.getHostVLUNs(hostname)
except hpeexceptions.HTTPNotFound:
LOG.debug("All VLUNs removed from host %s", hostname)
pass
if wwn is not None and not isinstance(wwn, list):
wwn = [wwn]
@ -3415,7 +3414,6 @@ class HPE3PARCommon(object):
"combination: %(host)s, %(vol)s",
{'host': host['name'],
'vol': vol_name})
pass
return existing_vlun
def find_existing_vluns(self, volume, host):
@ -3433,7 +3431,6 @@ class HPE3PARCommon(object):
"combination: %(host)s, %(vol)s",
{'host': host['name'],
'vol': vol_name})
pass
return existing_vluns
# v2 replication methods

View File

@ -1218,4 +1218,3 @@ class FlashSystemDriver(san.SanDriver,
"""Removes the specified volume from Cinder management."""
LOG.debug('unmanage: volume %(vol)s is no longer managed by cinder.',
{'vol': volume})
pass

View File

@ -535,7 +535,6 @@ class QnapISCSIDriver(san.SanISCSIDriver):
self.api_executor.delete_snapshot_api(snapshot_id)
elif 'ES' in internal_model_name.upper():
LOG.debug('in ES FW: do nothing')
pass
_metadata = self._get_volume_metadata(volume)
_metadata['LUNIndex'] = lun_index
_metadata['LUNNAA'] = lun_naa