Few fixes for headpin
Fixed the only-when-katello function for headpin
Merge pull request #838 from kbidarkar/fix-headpin

Few fixes for headpin