provisioners/chef: fix failing test
This commit is contained in:
parent
5b4b387f04
commit
661657c63f
|
@ -42,7 +42,8 @@ module VagrantPlugins
|
||||||
|
|
||||||
# The destination (on the guest) where the recipe will live
|
# The destination (on the guest) where the recipe will live
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def target_recipe_path(key)
|
def target_recipe_path
|
||||||
|
key = Digest::MD5.hexdigest(config.recipe)
|
||||||
File.join(config.upload_path, "recipe-#{key}.rb")
|
File.join(config.upload_path, "recipe-#{key}.rb")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -55,9 +56,7 @@ module VagrantPlugins
|
||||||
file.rewind
|
file.rewind
|
||||||
|
|
||||||
# Upload the tempfile to the guest
|
# Upload the tempfile to the guest
|
||||||
@machine.communicate.upload(
|
@machine.communicate.upload(file.path, target_recipe_path)
|
||||||
file.path,
|
|
||||||
target_recipe_path(Digest::MD5.hexdigest(config.recipe)))
|
|
||||||
ensure
|
ensure
|
||||||
# Delete our template
|
# Delete our template
|
||||||
file.close
|
file.close
|
||||||
|
|
Loading…
Reference in New Issue