summaryrefslogtreecommitdiff
path: root/glanceclient/v2
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-03-27 23:56:39 +0000
committerGerrit Code Review <review@openstack.org>2015-03-27 23:56:39 +0000
commitb3d2c636ec2605725b0b8e1bdf44bcd4a5419d01 (patch)
tree8196c1f2dd54ff0847b01cc19d3837ae2a1ad7e7 /glanceclient/v2
parent13b5a5ade126b39c683f3f81968b9350fc0f6ba2 (diff)
parenta1bb3eb0a5a1ffde5fd0a8621c32b31ef6a3c4fb (diff)
downloadpython-glanceclient-b3d2c636ec2605725b0b8e1bdf44bcd4a5419d01.tar.gz
Merge "Use any instead of False in generator"
Diffstat (limited to 'glanceclient/v2')
-rw-r--r--glanceclient/v2/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py
index 31d0253..e6ef31b 100644
--- a/glanceclient/v2/shell.py
+++ b/glanceclient/v2/shell.py
@@ -142,7 +142,7 @@ def do_image_list(gc, args):
filter_items = [(key, getattr(args, key)) for key in filter_keys]
if args.properties:
filter_properties = [prop.split('=', 1) for prop in args.properties]
- if False in (len(pair) == 2 for pair in filter_properties):
+ if any(len(pair) != 2 for pair in filter_properties):
utils.exit('Argument --property-filter expected properties in the'
' format KEY=VALUE')
filter_items += filter_properties