Missing self reference - result of refactory/consolidation of some libguestfs code