Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File copy operations as part of machine resource silently fail. #522

Open
chazzly opened this issue Jun 8, 2016 · 0 comments
Open

File copy operations as part of machine resource silently fail. #522

chazzly opened this issue Jun 8, 2016 · 0 comments

Comments

@chazzly
Copy link

chazzly commented Jun 8, 2016

While working my way around issue #237, @stuartpreston pointed out that copy operations (at least to Windows nodes) fail silently during converge. To reproduce:

machine 'windows-box' do
file 'c:\non-existing\dir\file.txt', 'file.txt'
action :converge
end

On converge, the file will show as being successfully copied, and not show an error.

Since 'machine' doesn't have a "directory" property, I think creating the directory is reasonable. While @stuartpreston 's suggestion works, it seems like an unnecessary complication.

$ chef -v
Chef Development Kit Version: 0.10.0
chef-client version: 12.5.1

Using driver aws and a standard aws windows server 2012r2 image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant