Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #138 from tobami/fix-logpath-creation

Create logpath using the path part of the LOGFILE
Closes #135
  • Loading branch information...
commit f1c119aa363ee572ff5aacf44c73de83e0a85b30 2 parents 4709725 + 86d2985
@tobami authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 littlechef/
4 littlechef/
@@ -23,7 +23,7 @@
from littlechef import cookbook_paths
from littlechef.lib import credentials
-from littlechef import LOGFILE as logging_path
+from littlechef import LOGFILE
# Path to local patch
@@ -74,6 +74,7 @@ def configure(current_node=None):
error += "Do you have sudo rights?"
# Set up chef solo configuration
+ logging_path = os.path.dirname(LOGFILE)
if not exists(logging_path):
sudo('mkdir -p {0}'.format(logging_path))
if not exists('/etc/chef'):
@@ -318,3 +319,4 @@ def _emerge_install():
"""Install Chef for Gentoo"""
with show('running'):
sudo("USE='-test' ACCEPT_KEYWORDS='~amd64' emerge -u chef")
Please sign in to comment.
Something went wrong with that request. Please try again.