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

(PDK-430) Do not cache template-url answer if using the default template #265

Merged
merged 1 commit into from
Aug 30, 2017

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Aug 22, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.675% when pulling 4ee0fbf on rodjek:pdk-430 into d02f959 on puppetlabs:master.

@@ -68,7 +68,7 @@ def self.invoke(opts = {})
end
end

PDK.answers.update!('template-url' => template_url)
PDK.answers.update!('template-url' => template_url) unless template_url == default_template_url

Choose a reason for hiding this comment

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

I don't get the intent of the original line - is this updating the answer for template_url with a local copy of the template instead of the initial remote URL?

Copy link
Contributor

Choose a reason for hiding this comment

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

as implemented this change also means that there is no way to reset to using the default without deleting/editing the ansers.json file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@james-stocks yeah, the intent is that if a user specifies a custom template URL (for example, a company which has their own internal module template that they'd like to use), it will be remembered for subsequent pdk new module runs.

@DavidS good point!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 93.699% when pulling ce600bb on rodjek:pdk-430 into bafb86f on puppetlabs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 93.699% when pulling 714bfe8 on rodjek:pdk-430 into bafb86f on puppetlabs:master.

@bmjen bmjen merged commit dbb55e7 into puppetlabs:master Aug 30, 2017
@rodjek rodjek deleted the pdk-430 branch August 30, 2017 02:06
@DavidS DavidS added the bug label Sep 5, 2017
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.

5 participants