[Yahoo-eng-team] [Bug 1538518] Re: Avoid using `len(x)` to check if x is empty

2016-02-05 Thread Ren Qiaowei
** Also affects: nova Importance: Undecided Status: New ** Changed in: nova Assignee: (unassigned) => Ren Qiaowei (qiaowei-ren) ** Changed in: nova Status: New => In Progress ** Also affects: swift Importance: Undecided Status: New ** Changed in: swift Assig

[Yahoo-eng-team] [Bug 1538518] Re: Avoid using `len(x)` to check if x is empty

2016-02-06 Thread Julien Danjou
I don't think spamming multiple projects with false bugs is a good idea. Please stop. ** No longer affects: ceilometer -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1538518 Title: Avoi

[Yahoo-eng-team] [Bug 1538518] Re: Avoid using `len(x)` to check if x is empty

2016-02-06 Thread Assaf Muller
** No longer affects: neutron -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1538518 Title: Avoid using `len(x)` to check if x is empty Status in Cinder: In Progress Status in Glance:

[Yahoo-eng-team] [Bug 1538518] Re: Avoid using `len(x)` to check if x is empty

2016-02-06 Thread Sean McGinnis
I have to agree with Julien. ** No longer affects: cinder -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1538518 Title: Avoid using `len(x)` to check if x is empty Sta

[Yahoo-eng-team] [Bug 1538518] Re: Avoid using `len(x)` to check if x is empty

2016-02-08 Thread OpenStack Infra
Reviewed: https://review.openstack.org/276886 Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=efd641caf0ad0bba0c6ad0993a5b65d08078966d Submitter: Jenkins Branch:master commit efd641caf0ad0bba0c6ad0993a5b65d08078966d Author: Steve Wilkerson Date: Fri Feb 5 13:38:51 201

[Yahoo-eng-team] [Bug 1538518] Re: Avoid using `len(x)` to check if x is empty

2016-02-09 Thread Ren Qiaowei
** Description changed: `len()` is used to check if collection (e.g., a dict, list, set, etc.) has items. As collections have a boolean representation too, it is better to directly check for true / false. rally/common/utils.py rally/task/utils.py rally/task/validation.py tests/uni