Don't check if rule is empty. Rule might consist of non empty
storage class, but in this case we only care about the placement
id.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
<< " within zonegroup " << dendl;
return -ERR_INVALID_LOCATION_CONSTRAINT;
}
- } else if (!user_info.default_placement.empty()) {
+ } else if (!user_info.default_placement.name.empty()) {
used_rule = &user_info.default_placement;
titer = zonegroup.placement_targets.find(user_info.default_placement.name);
if (titer == zonegroup.placement_targets.end()) {