Skip to content

Commit 3a51908

Browse files
committed
Read sudo_prefix from config file
1 parent 02f9567 commit 3a51908

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

littlechef/runner.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,12 @@ def _readconfig():
359359
msg = "Couldn't parse the ssh-config file '{0}'".format(ssh_config)
360360
abort(msg)
361361

362+
try:
363+
sudo_prefix = config.get('ssh', 'sudo_prefix', raw=True)
364+
env.sudo_prefix = sudo_prefix
365+
except ConfigParser.NoOptionError:
366+
pass
367+
362368
try:
363369
env.user = config.get('userinfo', 'user')
364370
user_specified = True

0 commit comments

Comments
 (0)