fixes #4752 - fixed repository creation error due to improper puppet detection

also fixes double content environment add for candlepin versus adding and deleting
the appropriate ids
Merge pull request #3853 from jlsherrill/repo_create

fixes #4752 - fixed repository creation error due to improper puppet det...