Signed-off-by: Michael Fritch <mfritch@suse.com>
(major, minor, patch) = version.split('.')
assert int(minor) >= 0
# patch might be a number or {number}-g{sha1}
- except:
+ except ValueError:
return 'version must be in the form X.Y.Z (e.g., 15.2.3)'
if int(major) < 15 or (int(major) == 15 and int(minor) < 2):
return 'cephadm only supports octopus (15.2.0) or later'
self._refresh_health()
return HandleCommandResult(stdout=str(completion.result))
- except:
+ except Exception:
# There are several reasons the try: block might fail:
# 1. the device no longer exist
# 2. the device is no longer known to Ceph
max-line-length = 100
ignore =
E501,
- E722,
E731,
E741,
F401,