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

MODULES-2054 - fixes dependency bug in creating the target file #317

Merged
merged 1 commit into from
May 27, 2015

Conversation

bmjen
Copy link
Contributor

@bmjen bmjen commented May 27, 2015

No description provided.

@@ -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 }
Copy link
Contributor

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?

Copy link
Contributor Author

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. ¯_(ツ)_/¯

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bmjen bmjen changed the title MODULES-2054 - fixes dependency bug in creating the target file {WIP}MODULES-2054 - fixes dependency bug in creating the target file May 27, 2015
@bmjen bmjen changed the title {WIP}MODULES-2054 - fixes dependency bug in creating the target file MODULES-2054 - fixes dependency bug in creating the target file May 27, 2015
@underscorgan underscorgan changed the title MODULES-2054 - fixes dependency bug in creating the target file (DO NOT MERGE) MODULES-2054 - fixes dependency bug in creating the target file May 27, 2015
@bmjen bmjen force-pushed the tableflip branch 2 times, most recently from 6502ab9 to 53cdf25 Compare May 27, 2015 18:07
@bmjen bmjen changed the title (DO NOT MERGE) MODULES-2054 - fixes dependency bug in creating the target file MODULES-2054 - fixes dependency bug in creating the target file May 27, 2015
}

concat::fragment { 'foo':
target => '#{basedir}/bar/foobar',
Copy link
Contributor

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'

underscorgan pushed a commit that referenced this pull request May 27, 2015
MODULES-2054 - fixes dependency bug in creating the target file
@underscorgan underscorgan merged commit 02c5f4b into puppetlabs:2.0.x May 27, 2015
@bmjen bmjen deleted the tableflip branch May 27, 2015 23:15
@LukasAud LukasAud added the bugfix label Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants