Merge "Fix a use of in where it should be equality"

This commit is contained in:
Jenkins 2015-04-01 14:25:56 +00:00 committed by Gerrit Code Review
commit 23c376431d

View File

@ -872,7 +872,7 @@ class OpenStackCloud(object):
if image_id == name_or_id:
return image
if (image is not None and
name_or_id in image.name and (
name_or_id == image.name and (
not exclude or exclude not in image.name)):
return image
return None