sebastien / cuisine

Chef-like functionality for Fabric
Other
1.26k stars 158 forks source link

Fix for sudo in file_upload #134

Closed jself closed 11 years ago

jself commented 11 years ago

If you're in is_local mode, sudo() is called, but sudo is also passed in on kwargs. I assume this needs to be the global sudo.

This is an ugly fix but preserves the syntax of the function api.

sebastien commented 11 years ago

Good catch! It's not amazing that the parameter shadows the global but your solution is the best I can think of.