fix: comfirm crash when list_hosts return str item

ansible list_hosts method may return str items (we expect Host instences),fix it