Changed condition in partition method

Fixes wrong condition introduced by
https://review.openstack.org/#/c/92849

Closes-Bug: #1319871
Change-Id: I437ef4c10826852f21cb3e0d435fab72f46cdec3
Merge "Changed condition in partition method"