Convert data bag to hash before iterating it