Bug #2106: attach ceph image problem.

This patch is a minor modification of the one submitted by
Alan Zhang <alan.zhang@linuxwind.org> in  dev.opennebula.org.