Created
April 29, 2009 21:18
-
-
Save pingali/104066 to your computer and use it in GitHub Desktop.
load_from_file bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/poolparty/plugins/chef.rb b/lib/poolparty/plugins/chef.rb | |
index c044320..d0b0b5e 100644 | |
--- a/lib/poolparty/plugins/chef.rb | |
+++ b/lib/poolparty/plugins/chef.rb | |
@@ -26,7 +26,7 @@ module PoolParty | |
def recipe file=nil, o={}, &block | |
if file | |
file = ::File.expand_path(file) | |
- ::FileUtils.mkdir_p "#{basedir}/recipes" unless ::File.directory? basedir | |
+ ::FileUtils.mkdir_p "#{basedir}/recipes" unless ::File.directory? "#{basedir}/recipes" | |
unless ::File.file?(file) | |
tfile = Tempfile.new("main-poolparty-recipe") | |
@@ -154,4 +154,4 @@ file_cache_path "/etc/chef" | |
end | |
end | |
-end | |
\ No newline at end of file | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment