Enable F841
F841 detects local variable is assigned to but never used. This commit fixes the violations and enables F841 in gate. Change-Id: Ic4dcac2733dfe334009327ac17aa3952cafaa63a
This commit is contained in:
@@ -117,7 +117,6 @@ def do_image_list(gc, args):
|
||||
def do_image_show(gc, args):
|
||||
"""Describe a specific image."""
|
||||
image = gc.images.get(args.id)
|
||||
ignore = ['self', 'access', 'file', 'schema']
|
||||
utils.print_image(image, int(args.max_column_width))
|
||||
|
||||
|
||||
@@ -285,7 +284,7 @@ def do_location_add(gc, args):
|
||||
help='ID of image whose locations are to be removed.')
|
||||
def do_location_delete(gc, args):
|
||||
"""Remove locations (and related metadata) from an image."""
|
||||
image = gc.images.delete_locations(args.id, set(args.url))
|
||||
gc.images.delete_locations(args.id, set(args.url))
|
||||
|
||||
|
||||
@utils.arg('--url', metavar='<URL>', required=True,
|
||||
|
||||
Reference in New Issue
Block a user