Fixed unreachable code (warning code W0101) pylint issues.
TrivialFix
Change-Id: I1b26952609c609114dc23ffb34609b7a9aed2ebf
def _try_failing(self):
self.attempts = self.attempts + 1
raise processutils.ProcessExecutionError("Fail everytime")
- return True
try:
ret = _try_failing(self)
if count >= 5:
LOG.error(_LE('Error in copying volume: %s'), src_name)
raise exception.DotHillRequestError
- break
+
time.sleep(1)
count += 1
'via the path %(path)s.') % {'path': host_device})
raise exception.VolumeBackendAPIException(data=msg)
- return device
-
LOG.debug('leave: _scan_device')
+ return device
@utils.synchronized('flashsystem-unmap', external=True)
def _unmap_vdisk_from_host(self, vdisk_name, connector):
'expects': expected_status})
if response.status == http_client.UNAUTHORIZED:
raise exception.NotAuthorized
- retcode = errno.EACCES
else:
retcode = errno.EIO
elif retcode == 0 and response.status is http_client.NOT_FOUND:
'(%(status)s).'),
{'volume': eventid, 'status': e})
raise loopingcall.LoopingCallDone(retvalue=False)
- status['state'] = 'error'
- fExit = True
if fExit is True:
break