Fixed the only-when-katello function for headpin