Merge "trival: Fix some spacing issues"
This commit is contained in:
commit
28c0e79f3c
@ -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(
|
||||
|
@ -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.'),
|
||||
|
@ -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']:
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user