trival: Fix some spacing issues

Fix some spacing issues uncovered by pylint.

Change-Id: I2544a36cfbcaed7520a2d350898f2d6e3c7cc6ff
Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
Chuck Short 2018-08-29 10:20:11 -04:00
parent c9d9e37c7d
commit 77c0d752db
7 changed files with 9 additions and 9 deletions

View File

@ -507,7 +507,7 @@ class VMAXVolumeMetadata(object):
source_snapshot_id=source_snapshot_id,
rep_mode=rep_mode, replication_status=replication_status,
rdf_group_label=rdf_group_label, use_bias=use_bias,
is_compression_disabled = (
is_compression_disabled=(
'yes' if self.utils.is_compression_disabled(
extra_specs) else 'no')
)
@ -653,7 +653,7 @@ class VMAXVolumeMetadata(object):
identifier_name=self.utils.get_volume_element_name(volume.id),
openstack_name=volume.display_name,
is_rep_enabled=('yes' if is_rep_enabled else 'no'),
rep_mode=rep_mode, is_compression_disabled = (
rep_mode=rep_mode, is_compression_disabled=(
'yes' if is_compression_disabled else 'no')
)
volume_metadata = self.update_volume_info_metadata(

View File

@ -45,7 +45,7 @@ volume_opts = [
help='Fusionstorage agent ip addr range.'),
cfg.StrOpt('pool_type',
default='default',
help = 'Pool type, like sata-2copy.'),
help='Pool type, like sata-2copy.'),
cfg.ListOpt('pool_id_filter',
default=[],
help='Pool id permit to use.'),

View File

@ -1374,7 +1374,7 @@ class RestClient(object):
msg = (_(
"Can't find valid IP from rest, please check it on storage."))
LOG.error(msg)
raise exception.VolumeBackendAPIException(data = msg)
raise exception.VolumeBackendAPIException(data=msg)
if 'data' in result:
for item in result['data']:

View File

@ -1695,7 +1695,7 @@ class StorwizeHelpers(object):
LOG.warning('Tried to delete non-existent volume %s.', volume)
return
self.ensure_vdisk_no_fc_mappings(volume, allow_snaps=True,
allow_fctgt = True)
allow_fctgt=True)
self.ssh.rmvolume(volume, force=force)
def get_vdisk_attributes(self, vdisk):
@ -2902,7 +2902,7 @@ class StorwizeSVCCommonDriver(san.SanDriver,
return sshpool
def _ssh_execute(self, sshpool, command,
check_exit_code = True, attempts=1):
check_exit_code=True, attempts=1):
try:
with sshpool.item() as ssh:
while attempts > 0:

View File

@ -378,7 +378,7 @@ class NetAppESeriesLibrary(object):
raise loopingcall.LoopingCallDone()
checker = loopingcall.FixedIntervalLoopingCall(f=check_system_status)
checker.start(interval = self.SLEEP_SECS,
checker.start(interval=self.SLEEP_SECS,
initial_delay=self.SLEEP_SECS).wait()
return True

View File

@ -111,7 +111,7 @@ class AESCipher(object):
cipher = Cipher(
algorithms.AES(self._key),
modes.CBC(self._iv),
backend = default_backend()
backend=default_backend()
)
encryptor = cipher.encryptor()
ciphertext = encryptor.update(self._pad(text)) + encryptor.finalize()

View File

@ -367,7 +367,7 @@ class HyperScaleDriver(driver.VolumeDriver):
except (exception.VolumeNotFound,
exception.UnableToProcessHyperScaleCmdOutput,
exception.ErrorInSendingMsg):
LOG.error("Exception in creating replica", exc_info = True)
LOG.error("Exception in creating replica", exc_info=True)
metadata_update['Secondary_datanode_key'] = 'NA'
metadata_update['Secondary_datanode_ip'] = 'NA'
metadata_update['DN_Resiliency'] = 'degraded'