theforeman/smart-proxy — pull request #135 by m4ce (2014-02-20 21:38:03+00:00)
Title: Don't call sudo if the calling user is the same as :puppet_user

Hi,

the idea behind this change is that we don't really need to invoke sudo if the calling user (ENV['USER']) is the same as the one defined in :puppet_user.

Cheers,
Matteo