avoid cap compare error, seen in bobtail

Merge the osd_key command to a single line in order to avoid
http://tracker.ceph.com/issues/3279

Signed-off-by: JuanJose 'JJ' Galvez <juanjose.galvez@inktank.com>