Update to latest pep8/code style versions

Update various linting programs to their latest version, and fix any
issues created by the update.
Change-Id: I014c846560663a76a1663b568ef48659d0ab6d4d
This commit is contained in:
Jay Faulkner
2023年12月28日 14:19:27 -08:00
parent 03b6b0a4ab
commit dcaed43ef9

View File

@@ -706,7 +706,7 @@ def _validate_image_info(ext, image_info=None, **kwargs):
msg = 'Image is missing \'{}\' field.'.format(field)
raise errors.InvalidCommandParamsError(msg)
if type(image_info['urls']) != list or not image_info['urls']:
if not isinstance(image_info['urls'], list) or not image_info['urls']:
raise errors.InvalidCommandParamsError(
'Image \'urls\' must be a list with at least one element.')
Reference in New Issue
openstack/ironic-python-agent
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.