See other comment.

server/pulp/server/agent/direct/services.py