replace ternary operator for use_ceph