make sure we are using a dict

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
fix indentation level for task

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
Merge pull request #179 from ceph/wip-7226

make sure dict is not adding None objects