refs #7156 - rubocop party - copying from katello to sam

This is a dupe I think. Check line 28/32.