Permalink
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...
2 parents 4709725 + 86d2985 commit f1c119aa363ee572ff5aacf44c73de83e0a85b30 @tobami committed Jan 15, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 littlechef/solo.py
View
@@ -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?"
abort(error)
# 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")
+

0 comments on commit f1c119a

Please sign in to comment.