-
Notifications
You must be signed in to change notification settings - Fork 303
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
MODULES-2054 - fixes dependency bug in creating the target file #317
Conversation
| @@ -149,7 +149,6 @@ | |||
| end | |||
| describe file("#{basedir}/fail_no_source") do | |||
| #FIXME: Serverspec::Type::File doesn't support exists? for some reason. so... hack. | |||
| it { should_not be_file } | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this being removed? Shouldn't things that are not files still not be files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a convo with @hunner about this. Since we've moved the resource creation to generate and updating of the content to eval_generate, if we fail to fetch the content from the fragments and the file doesn't exist, the apply will create an empty file. If the file does exist, it will be left unmodified. This is different from previous behavior but I think this is an edge case and the impact that this change could cause doesn't outweigh the complexity we'd have to add to the eval_generate function in order to properly handle cleaning up the resource in the catalog on rescue. ¯_(ツ)_/¯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
6502ab9
to
53cdf25
Compare
| } | ||
|
|
||
| concat::fragment { 'foo': | ||
| target => '#{basedir}/bar/foobar', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be target => 'foobar'
MODULES-2054 - fixes dependency bug in creating the target file
No description provided.